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 4c093cf commit 1f8397bCopy full SHA for 1f8397b
lib/SILPasses/SILCombiner/SILCombinerApplyVisitors.cpp
@@ -1392,9 +1392,9 @@ SILInstruction *SILCombiner::visitTryApplyInst(TryApplyInst *AI) {
1392
SILBasicBlock *NormalBB = AI->getNormalBB();
1393
SILBasicBlock *ErrorBB = AI->getErrorBB();
1394
SILLocation Loc = AI->getLoc();
1395
- eraseApply(AI, Users);
1396
Builder.setInsertionPoint(BB);
1397
Builder.setCurrentDebugScope(AI->getDebugScope());
+ eraseApply(AI, Users);
1398
1399
// Replace the try_apply with a cond_br false, which will be removed by
1400
// SimplifyCFG. We don't want to modify the CFG in SILCombine.
0 commit comments