@@ -3118,6 +3118,8 @@ static bool mayDirectlyCallAsync(SILFunction *fn) {
3118
3118
3119
3119
void IRGenSILFunction::visitFunctionRefBaseInst (FunctionRefBaseInst *i) {
3120
3120
auto fn = i->getInitiallyReferencedFunction ();
3121
+ PrettyStackTraceSILFunction entry (" lowering reference to" , fn);
3122
+
3121
3123
auto fnType = fn->getLoweredFunctionType ();
3122
3124
3123
3125
auto fpKind = irgen::classifyFunctionPointerKind (fn);
@@ -8101,6 +8103,8 @@ void IRGenSILFunction::visitWitnessMethodInst(swift::WitnessMethodInst *i) {
8101
8103
CanType baseTy = i->getLookupType ();
8102
8104
ProtocolConformanceRef conformance = i->getConformance ();
8103
8105
SILDeclRef member = i->getMember ();
8106
+ PrettyStackTraceSILDeclRef entry (" lowering use of witness method" , member);
8107
+
8104
8108
auto fnType = IGM.getSILTypes ().getConstantFunctionType (
8105
8109
IGM.getMaximalTypeExpansionContext (), member);
8106
8110
@@ -8285,6 +8289,7 @@ void IRGenSILFunction::visitSuperMethodInst(swift::SuperMethodInst *i) {
8285
8289
llvm::Value *baseValue = base.claimNext ();
8286
8290
8287
8291
auto method = i->getMember ().getOverriddenVTableEntry ();
8292
+ PrettyStackTraceSILDeclRef entry (" lowering super call to" , method);
8288
8293
auto methodType = i->getType ().castTo <SILFunctionType>();
8289
8294
8290
8295
auto *classDecl = cast<ClassDecl>(method.getDecl ()->getDeclContext ());
@@ -8381,6 +8386,8 @@ void IRGenSILFunction::visitClassMethodInst(swift::ClassMethodInst *i) {
8381
8386
llvm::Value *baseValue = base.claimNext ();
8382
8387
8383
8388
SILDeclRef method = i->getMember ().getOverriddenVTableEntry ();
8389
+ PrettyStackTraceSILDeclRef entry (" lowering class method call to" , method);
8390
+
8384
8391
auto methodType = i->getType ().castTo <SILFunctionType>();
8385
8392
8386
8393
auto *classDecl = cast<ClassDecl>(method.getDecl ()->getDeclContext ());
0 commit comments