From 0d9f17de8f21a10702de1510b73e89d07b3b9bbf Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Wed, 15 Apr 2015 14:17:44 +0100 Subject: Move the linear order to the HGraph. Bug found by Zheng Xu: SsaLivenessAnalysis being a stack allocated object, we should not refer to it in later phases of the compiler. Specifically, the code generator was using the linear order, which was stored in the liveness analysis object. Change-Id: I574641f522b7b86fc43f3914166108efc72edb3b --- compiler/optimizing/codegen_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/optimizing/codegen_test.cc') diff --git a/compiler/optimizing/codegen_test.cc b/compiler/optimizing/codegen_test.cc index 2be117bf38..afcff1ef65 100644 --- a/compiler/optimizing/codegen_test.cc +++ b/compiler/optimizing/codegen_test.cc @@ -152,7 +152,7 @@ static void RunCodeOptimized(CodeGenerator* codegen, bool has_result, Expected expected) { graph->BuildDominatorTree(); - SsaLivenessAnalysis liveness(*graph, codegen); + SsaLivenessAnalysis liveness(graph, codegen); liveness.Analyze(); RegisterAllocator register_allocator(graph->GetArena(), codegen, liveness); -- cgit v1.2.3-59-g8ed1b