@@ -3117,6 +3117,8 @@ static bool mayDirectlyCallAsync(SILFunction *fn) {
31173117
31183118void IRGenSILFunction::visitFunctionRefBaseInst (FunctionRefBaseInst *i) {
31193119 auto fn = i->getInitiallyReferencedFunction ();
3120+ PrettyStackTraceSILFunction entry (" lowering reference to" , fn);
3121+
31203122 auto fnType = fn->getLoweredFunctionType ();
31213123
31223124 auto fpKind = irgen::classifyFunctionPointerKind (fn);
@@ -8098,6 +8100,8 @@ void IRGenSILFunction::visitWitnessMethodInst(swift::WitnessMethodInst *i) {
80988100 CanType baseTy = i->getLookupType ();
80998101 ProtocolConformanceRef conformance = i->getConformance ();
81008102 SILDeclRef member = i->getMember ();
8103+ PrettyStackTraceSILDeclRef entry (" lowering use of witness method" , member);
8104+
81018105 auto fnType = IGM.getSILTypes ().getConstantFunctionType (
81028106 IGM.getMaximalTypeExpansionContext (), member);
81038107
@@ -8282,6 +8286,7 @@ void IRGenSILFunction::visitSuperMethodInst(swift::SuperMethodInst *i) {
82828286 llvm::Value *baseValue = base.claimNext ();
82838287
82848288 auto method = i->getMember ().getOverriddenVTableEntry ();
8289+ PrettyStackTraceSILDeclRef entry (" lowering super call to" , method);
82858290 auto methodType = i->getType ().castTo <SILFunctionType>();
82868291
82878292 auto *classDecl = cast<ClassDecl>(method.getDecl ()->getDeclContext ());
@@ -8378,6 +8383,8 @@ void IRGenSILFunction::visitClassMethodInst(swift::ClassMethodInst *i) {
83788383 llvm::Value *baseValue = base.claimNext ();
83798384
83808385 SILDeclRef method = i->getMember ().getOverriddenVTableEntry ();
8386+ PrettyStackTraceSILDeclRef entry (" lowering class method call to" , method);
8387+
83818388 auto methodType = i->getType ().castTo <SILFunctionType>();
83828389
83838390 auto *classDecl = cast<ClassDecl>(method.getDecl ()->getDeclContext ());
0 commit comments