Index: test/cctest/compiler/test-instruction.cc |
diff --git a/test/cctest/compiler/test-instruction.cc b/test/cctest/compiler/test-instruction.cc |
index 041e6d89fe0c46ff0c00926f4ea37f1e6d433062..294812fdfb7161fb8498b5349766ae63e0e6d74a 100644 |
--- a/test/cctest/compiler/test-instruction.cc |
+++ b/test/cctest/compiler/test-instruction.cc |
@@ -36,8 +36,6 @@ class InstructionTester : public HandleAndZoneScope { |
machine(zone()), |
code(NULL) {} |
- ~InstructionTester() { delete code; } |
- |
Isolate* isolate; |
Graph graph; |
Schedule schedule; |
@@ -57,7 +55,7 @@ class InstructionTester : public HandleAndZoneScope { |
} |
InstructionBlocks* instruction_blocks = |
TestInstrSeq::InstructionBlocksFor(main_zone(), &schedule); |
- code = new TestInstrSeq(main_zone(), instruction_blocks); |
+ code = new (main_zone()) TestInstrSeq(main_zone(), instruction_blocks); |
} |
Node* Int32Constant(int32_t val) { |