Skip to content

Commit 53f2c88

Browse files
committed
Add more information to backtraces from the LoadableByAddress pass
Should not change functionality outside of displaying more information in backtraces.
1 parent 412fffc commit 53f2c88

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/IRGen/LoadableByAddress.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1914,6 +1914,8 @@ static void allocateAndSetAll(StructLoweringState &pass,
19141914
LoadableStorageAllocation &allocator,
19151915
SILInstruction *user,
19161916
MutableArrayRef<Operand> operands) {
1917+
PrettyStackTraceSILNode backtrace("Running allocateAndSetAll on ", user);
1918+
19171919
for (Operand &operand : operands) {
19181920
SILValue value = operand.get();
19191921
SILType silType = value->getType();
@@ -2424,6 +2426,8 @@ static bool rewriteFunctionReturn(StructLoweringState &pass) {
24242426
}
24252427

24262428
void LoadableByAddress::runOnFunction(SILFunction *F) {
2429+
PrettyStackTraceSILFunction backtrace("Running LoadableByAddress on ", F);
2430+
24272431
CanSILFunctionType funcType = F->getLoweredFunctionType();
24282432
IRGenModule *currIRMod = getIRGenModule()->IRGen.getGenModule(F);
24292433

0 commit comments

Comments
 (0)