Remove a LLVM_DELETED_FUNCTION from destructor to fix -std=c++11 build on gcc 4.7.
authorCraig Topper <craig.topper@gmail.com>
Fri, 28 Sep 2012 07:17:01 +0000 (07:17 +0000)
committerCraig Topper <craig.topper@gmail.com>
Fri, 28 Sep 2012 07:17:01 +0000 (07:17 +0000)
llvm-svn: 164813

llvm/include/llvm/Operator.h

index cf6d8e2..6cc8231 100644 (file)
@@ -35,7 +35,9 @@ private:
   void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION;
   void *operator new(size_t s) LLVM_DELETED_FUNCTION;
   Operator() LLVM_DELETED_FUNCTION;
-  ~Operator() LLVM_DELETED_FUNCTION;
+  // NOTE: cannot use LLVM_DELETED_FUNCTION because gcc errors when deleting
+  // an override of a non-deleted function.
+  ~Operator();
 
 public:
   /// getOpcode - Return the opcode for this Instruction or ConstantExpr.