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/live_ranges_test.cc | |
parent | f659bec20db45c809a891ff528fb6aecf2c76149 (diff) | |
parent | 476df557fed5f0b3f32f8d11a654674bb403a8f8 (diff) | |
download | art-f8e28f575b1382e984edb2e8c9846a27a1bdea10.tar.gz art-f8e28f575b1382e984edb2e8c9846a27a1bdea10.tar.bz2 art-f8e28f575b1382e984edb2e8c9846a27a1bdea10.zip |
Merge "Use Is*() helpers to shorten code in the optimizing compiler."
Diffstat (limited to 'compiler/optimizing/live_ranges_test.cc')
-rw-r--r-- | compiler/optimizing/live_ranges_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizing/live_ranges_test.cc b/compiler/optimizing/live_ranges_test.cc index eafc3e1483..d5f4f902c8 100644 --- a/compiler/optimizing/live_ranges_test.cc +++ b/compiler/optimizing/live_ranges_test.cc @@ -75,7 +75,7 @@ TEST(LiveRangesTest, CFG1) { // Last use is the return instruction. ASSERT_EQ(9u, range->GetEnd()); HBasicBlock* block = graph->GetBlocks().Get(1); - ASSERT_TRUE(block->GetLastInstruction()->AsReturn() != nullptr); + ASSERT_TRUE(block->GetLastInstruction()->IsReturn()); ASSERT_EQ(8u, block->GetLastInstruction()->GetLifetimePosition()); ASSERT_TRUE(range->GetNext() == nullptr); } @@ -121,7 +121,7 @@ TEST(LiveRangesTest, CFG2) { // Last use is the return instruction. ASSERT_EQ(23u, range->GetEnd()); HBasicBlock* block = graph->GetBlocks().Get(3); - ASSERT_TRUE(block->GetLastInstruction()->AsReturn() != nullptr); + ASSERT_TRUE(block->GetLastInstruction()->IsReturn()); ASSERT_EQ(22u, block->GetLastInstruction()->GetLifetimePosition()); ASSERT_TRUE(range->GetNext() == nullptr); } |