[mlir:Bytecode] Fix asan failure

We were accessing the region state after it got popped from the stack.
This commit is contained in:
River Riddle 2022-08-22 10:02:18 -07:00
parent 0a8dd8ef79
commit 96fd3f2d5b
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}