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