summaryrefslogtreecommitdiff
path: root/compiler/optimizing/boolean_simplifier.cc
diff options
context:
space:
mode:
author David Brazdil <dbrazdil@google.com> 2015-04-27 13:28:57 +0100
committer David Brazdil <dbrazdil@google.com> 2015-04-27 13:40:06 +0100
commitc7508e93fa3df3a3890f6b62550cbd5e35bdd8df (patch)
tree85795f0df38a741ab14c34e0403ba4bc3c317371 /compiler/optimizing/boolean_simplifier.cc
parent76bf84a196576f902a76a1165516a49dac15856f (diff)
ART: Fix removing a Phi with RemoveInstruction
Boolean simplifier might attempt to remove a Phi from the Instruction list. Change-Id: I698cc616549bd88dac96395cb2e5d09b5433d157
Diffstat (limited to 'compiler/optimizing/boolean_simplifier.cc')
-rw-r--r--compiler/optimizing/boolean_simplifier.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/boolean_simplifier.cc b/compiler/optimizing/boolean_simplifier.cc
index 30c89f2d15..9a9215135a 100644
--- a/compiler/optimizing/boolean_simplifier.cc
+++ b/compiler/optimizing/boolean_simplifier.cc
@@ -128,7 +128,7 @@ void HBooleanSimplifier::Run() {
// Remove the original condition if it is now unused.
if (!if_condition->HasUses()) {
- if_condition->GetBlock()->RemoveInstruction(if_condition);
+ if_condition->GetBlock()->RemoveInstructionOrPhi(if_condition);
}
}
}