Skip to content

Commit 79a668a

Browse files
committed
SILGen: Don't use CanType() on a type that might be a sugared type
1 parent 8364eca commit 79a668a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILGen/SILGenProlog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1765,7 +1765,7 @@ uint16_t SILGenFunction::emitBasicProlog(
17651765
AbstractionPattern origResultType = origClosureType
17661766
? origClosureType->getFunctionResultType()
17671767
: AbstractionPattern(genericSig.getCanonicalSignature(),
1768-
CanType(resultType));
1768+
resultType->getCanonicalType());
17691769

17701770
emitIndirectResultParameters(*this, resultType, origResultType, DC);
17711771

0 commit comments

Comments
 (0)