Skip to content

Commit fce43da

Browse files
authored
Merge pull request #34502 from atrick/simplifycfg-critedge
Rewrite SimplifyCFG trampoline removal to generalize it (avoid critical edges as a side-effect)
2 parents 147015d + 871518c commit fce43da

File tree

7 files changed

+284
-207
lines changed

7 files changed

+284
-207
lines changed

lib/SIL/Verifier/SILVerifier.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5029,8 +5029,11 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
50295029
SILValue op = i.getOperand(0);
50305030
require(!state.Stack.empty(),
50315031
"stack dealloc with empty stack");
5032-
require(op == state.Stack.back(),
5033-
"stack dealloc does not match most recent stack alloc");
5032+
if (op != state.Stack.back()) {
5033+
llvm::errs() << "Recent stack alloc: " << *state.Stack.back();
5034+
require(op == state.Stack.back(),
5035+
"stack dealloc does not match most recent stack alloc");
5036+
}
50345037
state.Stack.pop_back();
50355038

50365039
} else if (isa<BeginAccessInst>(i) || isa<BeginApplyInst>(i)) {

0 commit comments

Comments
 (0)