commit | 476df557fed5f0b3f32f8d11a654674bb403a8f8 | [log] [tgz] |
---|---|---|
author | Roland Levillain <rpl@google.com> | Thu Oct 09 17:51:36 2014 +0100 |
committer | Roland Levillain <rpl@google.com> | Thu Oct 09 17:59:50 2014 +0100 |
tree | 0ca72785e60b3b1152bca0908e6d134c0a30f631 | |
parent | 9e878d50567f624094f3c4940ac3aedbc5eff3b9 [diff] [blame] |
Use Is*() helpers to shorten code in the optimizing compiler. Change-Id: I79f31833bc9a0aa2918381aa3fb0b05d45f75689
diff --git a/compiler/optimizing/ssa_builder.cc b/compiler/optimizing/ssa_builder.cc index 471307e..be2c039 100644 --- a/compiler/optimizing/ssa_builder.cc +++ b/compiler/optimizing/ssa_builder.cc
@@ -51,7 +51,7 @@ !it.Done(); it.Advance()) { HInstruction* current = it.Current(); - if (current->AsLocal() != nullptr) { + if (current->IsLocal()) { current->GetBlock()->RemoveInstruction(current); } }