Skip to content

Commit 103cc32

Browse files
Merge pull request #40516 from nate-chandler/alloc_stack_hoisting/make-new-dealloc_stacks-locs-cleanups
[AllocStackHoisting] New dealloc_stack's locs are cleanups.
2 parents 1ba8317 + 78babbc commit 103cc32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/IRGen/AllocStackHoisting.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ insertDeallocStackAtEndOf(SmallVectorImpl<SILInstruction *> &FunctionExits,
118118
// Insert dealloc_stack in the exit blocks.
119119
for (auto *Exit : FunctionExits) {
120120
SILBuilderWithScope Builder(Exit);
121-
Builder.createDeallocStack(AllocStack->getLoc(), AllocStack);
121+
Builder.createDeallocStack(CleanupLocation(AllocStack->getLoc()),
122+
AllocStack);
122123
}
123124
}
124125

0 commit comments

Comments
 (0)