diff options
Diffstat (limited to 'compiler/optimizing/liveness_test.cc')
-rw-r--r-- | compiler/optimizing/liveness_test.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/optimizing/liveness_test.cc b/compiler/optimizing/liveness_test.cc index f11f7a9779..ba3787e9be 100644 --- a/compiler/optimizing/liveness_test.cc +++ b/compiler/optimizing/liveness_test.cc @@ -47,8 +47,10 @@ static void DumpBitVector(BitVector* vector, void LivenessTest::TestCode(const std::vector<uint16_t>& data, const char* expected) { HGraph* graph = CreateCFG(data); // `Inline` conditions into ifs. - PrepareForRegisterAllocation(graph, *compiler_options_).Run(); - std::unique_ptr<CodeGenerator> codegen = CodeGenerator::Create(graph, *compiler_options_); + std::unique_ptr<CompilerOptions> compiler_options = + CommonCompilerTest::CreateCompilerOptions(kRuntimeISA, "default"); + PrepareForRegisterAllocation(graph, *compiler_options).Run(); + std::unique_ptr<CodeGenerator> codegen = CodeGenerator::Create(graph, *compiler_options); SsaLivenessAnalysis liveness(graph, codegen.get(), GetScopedAllocator()); liveness.Analyze(); |