Skip to content

Commit d7726dc

Browse files
committed
AST: Simplify TypeSubstituter::transformOpaqueTypeArchetypeType()
1 parent 52e496d commit d7726dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/TypeSubstitution.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ TypeSubstituter::transformOpaqueTypeArchetypeType(OpaqueTypeArchetypeType *opaqu
407407

408408
// If we return an opaque archetype unchanged, recurse into its substitutions
409409
// as a special case.
410-
if (known->getCanonicalType() == opaque->getCanonicalType())
410+
if (known.getPointer() == opaque)
411411
return std::nullopt; // Recursively process the substitutions of the
412412
// opaque type archetype.
413413
return known;

0 commit comments

Comments
 (0)