summaryrefslogtreecommitdiff
path: root/compiler/optimizing/loop_optimization.h
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2016-10-05 09:55:42 +0100
committerNicolas Geoffray <ngeoffray@google.com>2016-10-05 09:55:42 +0100
commitebe167422f6197b9df0698bbeb944a0e4eea5f2d (patch)
tree60bb0084030cadfed694261c36c5722f4f945869 /compiler/optimizing/loop_optimization.h
parent2a5c5160771ad528bc9b3ac36ac5785a184c956d (diff)
Properly scope HLoopOptimization's allocator.
HOptimization classes do not get their destructor called, as they are arena objects. So the scope for the optimization allocator needs to be the Run method. Also anticipate bisection search breakage by adding HLoopOptimization to the list of recognized optimizations. Change-Id: I7770989c39d5700a3b6b0a20af5d4b874dfde111
Diffstat (limited to 'compiler/optimizing/loop_optimization.h')
-rw-r--r--compiler/optimizing/loop_optimization.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/loop_optimization.h b/compiler/optimizing/loop_optimization.h
index e7980ce89e..d12fe5ee18 100644
--- a/compiler/optimizing/loop_optimization.h
+++ b/compiler/optimizing/loop_optimization.h
@@ -72,7 +72,7 @@ class HLoopOptimization : public HOptimization {
// Phase-local heap memory allocator for the loop optimizer. Storage obtained
// through this allocator is released when the loop optimizer is done.
- ArenaAllocator loop_allocator_;
+ ArenaAllocator* loop_allocator_;
// Entries into the loop hierarchy representation.
LoopNode* top_loop_;