diff options
| author | 2016-03-24 10:25:51 +0000 | |
|---|---|---|
| committer | 2016-03-24 10:25:51 +0000 | |
| commit | 0ced281ae6216c29f57ca0f8b7388a722e8da97b (patch) | |
| tree | b7f8273bb117c8ec8f8546ed937a8c0a96d2e5de /compiler/optimizing/nodes.cc | |
| parent | 843a65556616183a36792bbcc1632c6d8d0e78b2 (diff) | |
| parent | 1a65388f1d86bb232c2e44fecb44cebe13105d2e (diff) | |
Merge "Clean up art::HConstant predicates."
Diffstat (limited to 'compiler/optimizing/nodes.cc')
| -rw-r--r-- | compiler/optimizing/nodes.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizing/nodes.cc b/compiler/optimizing/nodes.cc index e08e8fb7b6..05bb901976 100644 --- a/compiler/optimizing/nodes.cc +++ b/compiler/optimizing/nodes.cc @@ -2402,10 +2402,10 @@ HInstruction* HGraph::InsertOppositeCondition(HInstruction* cond, HInstruction* return replacement; } else if (cond->IsIntConstant()) { HIntConstant* int_const = cond->AsIntConstant(); - if (int_const->IsZero()) { + if (int_const->IsFalse()) { return GetIntConstant(1); } else { - DCHECK(int_const->IsOne()); + DCHECK(int_const->IsTrue()) << int_const->GetValue(); return GetIntConstant(0); } } else { |