From 3596cccedfa27e453d18947327efc6da9fb91590 Mon Sep 17 00:00:00 2001 From: "jarin@chromium.org" Date: Wed, 30 Jul 2014 14:36:15 +0000 Subject: [PATCH] Add delete operators for Instruction to make Visual C++ happy. BUG= R=danno@chromium.org Review URL: https://codereview.chromium.org/428223002 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22713 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/compiler/instruction.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compiler/instruction.h b/src/compiler/instruction.h index c461955..92b785b 100644 --- a/src/compiler/instruction.h +++ b/src/compiler/instruction.h @@ -489,6 +489,9 @@ class Instruction : public ZoneObject { // zone-allocated memory. void* operator new(size_t, void* location) { return location; } + void operator delete(void*, size_t) { UNREACHABLE(); } + void operator delete(void* pointer, Zone* zone) { UNREACHABLE(); } + protected: explicit Instruction(InstructionCode opcode) : opcode_(opcode), -- 2.7.4