diff options
Diffstat (limited to 'compiler/optimizing/gvn.cc')
-rw-r--r-- | compiler/optimizing/gvn.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizing/gvn.cc b/compiler/optimizing/gvn.cc index 5050e155f5..7cf061773f 100644 --- a/compiler/optimizing/gvn.cc +++ b/compiler/optimizing/gvn.cc @@ -39,7 +39,7 @@ class ValueSet : public ArenaObject<kArenaAllocGvn> { explicit ValueSet(ArenaAllocator* allocator) : allocator_(allocator), num_buckets_(kMinimumNumberOfBuckets), - buckets_(allocator->AllocArray<Node*>(num_buckets_)), + buckets_(allocator->AllocArray<Node*>(num_buckets_, kArenaAllocGvn)), buckets_owned_(allocator, num_buckets_, false), num_entries_(0) { // ArenaAllocator returns zeroed memory, so no need to set buckets to null. @@ -52,7 +52,7 @@ class ValueSet : public ArenaObject<kArenaAllocGvn> { ValueSet(ArenaAllocator* allocator, const ValueSet& to_copy) : allocator_(allocator), num_buckets_(to_copy.IdealBucketCount()), - buckets_(allocator->AllocArray<Node*>(num_buckets_)), + buckets_(allocator->AllocArray<Node*>(num_buckets_, kArenaAllocGvn)), buckets_owned_(allocator, num_buckets_, false), num_entries_(to_copy.num_entries_) { // ArenaAllocator returns zeroed memory, so entries of buckets_ and |