Index: test/unittests/compiler/instruction-sequence-unittest.cc |
diff --git a/test/unittests/compiler/instruction-sequence-unittest.cc b/test/unittests/compiler/instruction-sequence-unittest.cc |
index 121163226d6da6f1da579f6db8fbd2a9b7c3fb19..101a9e3a02f2fd0faa874c0dcb5484401f122f87 100644 |
--- a/test/unittests/compiler/instruction-sequence-unittest.cc |
+++ b/test/unittests/compiler/instruction-sequence-unittest.cc |
@@ -55,7 +55,7 @@ InstructionSequenceTest::InstructionSequenceTest() |
void InstructionSequenceTest::SetNumRegs(int num_general_registers, |
int num_double_registers) { |
- CHECK(config_.is_empty()); |
+ CHECK(!config_); |
CHECK(instructions_.empty()); |
CHECK(instruction_blocks_.empty()); |
num_general_registers_ = num_general_registers; |
@@ -64,8 +64,8 @@ void InstructionSequenceTest::SetNumRegs(int num_general_registers, |
RegisterConfiguration* InstructionSequenceTest::config() { |
- if (config_.is_empty()) { |
- config_.Reset(new RegisterConfiguration( |
+ if (!config_) { |
+ config_.reset(new RegisterConfiguration( |
num_general_registers_, num_double_registers_, num_general_registers_, |
num_double_registers_, allocatable_codes, allocatable_double_codes, |
kSimpleFPAliasing ? RegisterConfiguration::OVERLAP |