diff options
author | 2015-04-15 18:22:45 +0100 | |
---|---|---|
committer | 2015-04-15 21:51:12 +0100 | |
commit | f776b92a0d52bb522043812dacb9c21ac11858e2 (patch) | |
tree | 619ae49853b201fc4ea9d0ac4b113c6226e3c339 /compiler/optimizing/nodes.h | |
parent | acf9b7b7616a9b104e6f2146051d8e14d9cb9030 (diff) |
Remove dead blocks for the blocks_ array.
This prevents crashing because of structurally incorrect
blocks. Also we now don't need to remove its instructions.
Test case courtesy of Serguei I Katkov.
Change-Id: Ia3ef9580549fc3546e8cd5f346079b1f0ceb2a61
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r-- | compiler/optimizing/nodes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index 539e0b5de0..4bca9aaf82 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -253,7 +253,7 @@ class HGraph : public ArenaObject<kArenaAllocMisc> { ArenaBitVector* visited, ArenaBitVector* visiting); void RemoveInstructionsAsUsersFromDeadBlocks(const ArenaBitVector& visited) const; - void RemoveDeadBlocks(const ArenaBitVector& visited) const; + void RemoveDeadBlocks(const ArenaBitVector& visited); template <class InstType, typename ValueType> InstType* CreateConstant(ValueType value, ArenaSafeMap<ValueType, InstType*>* cache); |