Index: src/compiler/instruction.h |
diff --git a/src/compiler/instruction.h b/src/compiler/instruction.h |
index 16bff0686589d595c774947f56a351769924bfab..8396fe30f2793bdc644e7735102a17cafbfad6dd 100644 |
--- a/src/compiler/instruction.h |
+++ b/src/compiler/instruction.h |
@@ -633,8 +633,14 @@ class ParallelMove final : public ZoneVector<MoveOperands*>, public ZoneObject { |
MoveOperands* AddMove(const InstructionOperand& from, |
const InstructionOperand& to) { |
- auto zone = get_allocator().zone(); |
- auto move = new (zone) MoveOperands(from, to); |
+ Zone* zone = get_allocator().zone(); |
+ return AddMove(from, to, zone); |
+ } |
+ |
+ MoveOperands* AddMove(const InstructionOperand& from, |
+ const InstructionOperand& to, |
+ Zone* operand_allocation_zone) { |
+ MoveOperands* move = new (operand_allocation_zone) MoveOperands(from, to); |
push_back(move); |
return move; |
} |