File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 31
31
#include " swift/AST/Module.h"
32
32
#include " swift/AST/PackConformance.h"
33
33
#include " swift/AST/ParameterList.h"
34
+ #include " swift/AST/PrettyStackTrace.h"
34
35
#include " swift/AST/ProtocolConformance.h"
35
36
#include " swift/AST/SILLayout.h"
36
37
#include " swift/AST/SubstitutionMap.h"
@@ -1748,6 +1749,9 @@ CanType TypeBase::computeCanonicalType() {
1748
1749
case TypeKind::GenericFunction: {
1749
1750
AnyFunctionType *funcTy = cast<AnyFunctionType>(this );
1750
1751
1752
+ PrettyStackTraceType trace (funcTy->getResult ()->getASTContext (),
1753
+ " computing canonical type for " , this );
1754
+
1751
1755
CanGenericSignature genericSig;
1752
1756
if (auto *genericFnTy = dyn_cast<GenericFunctionType>(this ))
1753
1757
genericSig = genericFnTy->getGenericSignature ().getCanonicalSignature ();
You can’t perform that action at this time.
0 commit comments