diff options
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r-- | compiler/optimizing/nodes.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index 55e579baf4..3ad987e3f0 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -2243,8 +2243,9 @@ class HInstruction : public ArenaObject<kArenaAllocInstruction> { DCHECK(user != nullptr); // Note: fixup_end remains valid across push_front(). auto fixup_end = uses_.empty() ? uses_.begin() : ++uses_.begin(); + ArenaAllocator* allocator = user->GetBlock()->GetGraph()->GetAllocator(); HUseListNode<HInstruction*>* new_node = - new (GetBlock()->GetGraph()->GetAllocator()) HUseListNode<HInstruction*>(user, index); + new (allocator) HUseListNode<HInstruction*>(user, index); uses_.push_front(*new_node); FixUpUserRecordsAfterUseInsertion(fixup_end); } |