Skip to content

Commit e8773b5

Browse files
authored
Add a PrettyStackTrace for SILInliner::inlineFunction (#24658)
1 parent 104ece8 commit e8773b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/SILOptimizer/Utils/SILInliner.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#define DEBUG_TYPE "sil-inliner"
1414

1515
#include "swift/SILOptimizer/Utils/SILInliner.h"
16+
#include "swift/SIL/PrettyStackTrace.h"
1617
#include "swift/SIL/SILDebugScope.h"
1718
#include "swift/SIL/TypeSubstCloner.h"
1819
#include "swift/SILOptimizer/Utils/CFG.h"
@@ -325,6 +326,8 @@ class SILInlineCloner
325326
std::pair<SILBasicBlock::iterator, SILBasicBlock *>
326327
SILInliner::inlineFunction(SILFunction *calleeFunction, FullApplySite apply,
327328
ArrayRef<SILValue> appliedArgs) {
329+
PrettyStackTraceSILFunction calleeTraceRAII("inlining", calleeFunction);
330+
PrettyStackTraceSILFunction callerTraceRAII("...into", apply.getFunction());
328331
assert(canInlineApplySite(apply)
329332
&& "Asked to inline function that is unable to be inlined?!");
330333

0 commit comments

Comments
 (0)