Index: test/cctest/compiler/test-instruction.cc |
diff --git a/test/cctest/compiler/test-instruction.cc b/test/cctest/compiler/test-instruction.cc |
index 0e8056e53e63159d636f60f095d0e1ce399339b4..56f95541f77734a7adf1357ee8f7f5137d8c60c8 100644 |
--- a/test/cctest/compiler/test-instruction.cc |
+++ b/test/cctest/compiler/test-instruction.cc |
@@ -90,7 +90,7 @@ class InstructionTester : public HandleAndZoneScope { |
} |
UnallocatedOperand* NewUnallocated(int vreg) { |
- return new (zone()) UnallocatedOperand(UnallocatedOperand::ANY, vreg); |
+ return UnallocatedOperand(UnallocatedOperand::ANY, vreg).Copy(zone()); |
} |
InstructionBlock* BlockAt(BasicBlock* block) { |