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 8991192 commit 7d88d72Copy full SHA for 7d88d72
lib/SIL/Verifier/SILVerifier.cpp
@@ -5025,8 +5025,11 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
5025
SILValue op = i.getOperand(0);
5026
require(!state.Stack.empty(),
5027
"stack dealloc with empty stack");
5028
- require(op == state.Stack.back(),
5029
- "stack dealloc does not match most recent stack alloc");
+ if (op != state.Stack.back()) {
+ llvm::errs() << "Recent stack alloc: " << *state.Stack.back();
5030
+ require(op == state.Stack.back(),
5031
+ "stack dealloc does not match most recent stack alloc");
5032
+ }
5033
state.Stack.pop_back();
5034
5035
} else if (isa<BeginAccessInst>(i) || isa<BeginApplyInst>(i)) {
0 commit comments