diff options
author | Roland Levillain <rpl@google.com> | 2014-10-13 11:36:10 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-10-13 11:36:11 +0000 |
commit | f8e28f575b1382e984edb2e8c9846a27a1bdea10 (patch) | |
tree | 12506af9dc858d842061843570a939e74822b517 /compiler/optimizing/nodes.cc | |
parent | f659bec20db45c809a891ff528fb6aecf2c76149 (diff) | |
parent | 476df557fed5f0b3f32f8d11a654674bb403a8f8 (diff) | |
download | art-f8e28f575b1382e984edb2e8c9846a27a1bdea10.zip art-f8e28f575b1382e984edb2e8c9846a27a1bdea10.tar.gz art-f8e28f575b1382e984edb2e8c9846a27a1bdea10.tar.bz2 |
Merge "Use Is*() helpers to shorten code in the optimizing compiler."
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 3a0b40c..a058dea 100644 --- a/compiler/optimizing/nodes.cc +++ b/compiler/optimizing/nodes.cc @@ -317,8 +317,8 @@ static void UpdateInputsUsers(HInstruction* instruction) { } void HBasicBlock::InsertInstructionBefore(HInstruction* instruction, HInstruction* cursor) { - DCHECK(cursor->AsPhi() == nullptr); - DCHECK(instruction->AsPhi() == nullptr); + DCHECK(!cursor->IsPhi()); + DCHECK(!instruction->IsPhi()); DCHECK_EQ(instruction->GetId(), -1); DCHECK_NE(cursor->GetId(), -1); DCHECK_EQ(cursor->GetBlock(), this); |