summaryrefslogtreecommitdiff
path: root/compiler/optimizing/loop_optimization_test.cc
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2016-10-05 13:49:44 +0100
committerNicolas Geoffray <ngeoffray@google.com>2016-10-05 13:49:44 +0100
commit5ed20f90acd05e1f8697340f11113f0c61c22492 (patch)
tree470b26b33054a2398bdf115f6592777b1b7698bd /compiler/optimizing/loop_optimization_test.cc
parentd3a9ce9d30a59587413310e66ea51c8f7adb0a1d (diff)
Make it possible to pass an arena allocator to HLoopOptimization.
loop_optimization_test uses memory from HLoopOptimization's allocator, which is scoped by the Run method. Fix is to pass custom allocator. test: m test-art-host-gtest Change-Id: I359330e22202519f400a26da5403eeb00f0b2db4
Diffstat (limited to 'compiler/optimizing/loop_optimization_test.cc')
-rw-r--r--compiler/optimizing/loop_optimization_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/loop_optimization_test.cc b/compiler/optimizing/loop_optimization_test.cc
index 4e007d4e9a..4d54afd14d 100644
--- a/compiler/optimizing/loop_optimization_test.cc
+++ b/compiler/optimizing/loop_optimization_test.cc
@@ -31,7 +31,7 @@ class LoopOptimizationTest : public CommonCompilerTest {
allocator_(&pool_),
graph_(CreateGraph(&allocator_)),
iva_(new (&allocator_) HInductionVarAnalysis(graph_)),
- loop_opt_(new (&allocator_) HLoopOptimization(graph_, iva_)) {
+ loop_opt_(new (&allocator_) HLoopOptimization(graph_, iva_, &allocator_)) {
BuildGraph();
}