We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da71271 commit 742d5f2Copy full SHA for 742d5f2
lib/SILOptimizer/Utils/SILInliner.cpp
@@ -266,7 +266,8 @@ class BeginApplySite {
266
EndBorrow->eraseFromParent();
267
268
if (auto allocation = BeginApply->getCalleeAllocationResult()) {
269
- for (auto *user : allocation->getUsers()) {
+ SmallVector<SILInstruction *, 4> users(allocation->getUsers());
270
+ for (auto *user : users) {
271
auto *dsi = cast<DeallocStackInst>(user);
272
dsi->eraseFromParent();
273
}
0 commit comments