AST: Fix some -Wunused-but-set-variable warnings.

This commit is contained in:
Allan Shortlidge
2025-04-01 12:54:22 -07:00
parent 119b38e13a
commit b6cf794bb8
2 changed files with 2 additions and 2 deletions

View File

@@ -98,7 +98,7 @@ ProtocolConformanceRef::subst(Type origType, InFlightSubstitution &IFS) const {
// If the type is an opaque archetype, the conformance will remain abstract,
// unless we're specifically substituting opaque types.
if (auto origArchetype = origType->getAs<OpaqueTypeArchetypeType>()) {
if (origType->getAs<OpaqueTypeArchetypeType>()) {
if (!IFS.shouldSubstituteOpaqueArchetypes()) {
return forAbstract(origType.subst(IFS), proto);
}