File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 13
13
#define DEBUG_TYPE " sil-inliner"
14
14
15
15
#include " swift/SILOptimizer/Utils/SILInliner.h"
16
+ #include " swift/SIL/PrettyStackTrace.h"
16
17
#include " swift/SIL/SILDebugScope.h"
17
18
#include " swift/SIL/TypeSubstCloner.h"
18
19
#include " swift/SILOptimizer/Utils/CFG.h"
@@ -325,6 +326,8 @@ class SILInlineCloner
325
326
std::pair<SILBasicBlock::iterator, SILBasicBlock *>
326
327
SILInliner::inlineFunction (SILFunction *calleeFunction, FullApplySite apply,
327
328
ArrayRef<SILValue> appliedArgs) {
329
+ PrettyStackTraceSILFunction calleeTraceRAII (" inlining" , calleeFunction);
330
+ PrettyStackTraceSILFunction callerTraceRAII (" ...into" , apply.getFunction ());
328
331
assert (canInlineApplySite (apply)
329
332
&& " Asked to inline function that is unable to be inlined?!" );
330
333
You can’t perform that action at this time.
0 commit comments