mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Fix some -Wunused-but-set-variable warnings.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user