forked from OSchip/llvm-project
[mlir:Bytecode] Fix asan failure
We were accessing the region state after it got popped from the stack.
This commit is contained in:
parent
0a8dd8ef79
commit
96fd3f2d5b
|
@ -921,9 +921,9 @@ BytecodeReader::parseRegions(EncodingReader &reader,
|
|||
|
||||
// When the regions have been fully parsed, pop them off of the read stack. If
|
||||
// the regions were isolated from above, we also pop the last value scope.
|
||||
regionStack.pop_back();
|
||||
if (readState.isIsolatedFromAbove)
|
||||
valueScopes.pop_back();
|
||||
regionStack.pop_back();
|
||||
return success();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue