[llvm-commits] [llvm] r164813 - /llvm/trunk/include/llvm/Operator.h
Craig Topper
craig.topper at gmail.com
Fri Sep 28 00:17:02 PDT 2012
Author: ctopper
Date: Fri Sep 28 02:17:01 2012
New Revision: 164813
URL: http://llvm.org/viewvc/llvm-project?rev=164813&view=rev
Log:
Remove a LLVM_DELETED_FUNCTION from destructor to fix -std=c++11 build on gcc 4.7.
Modified:
llvm/trunk/include/llvm/Operator.h
Modified: llvm/trunk/include/llvm/Operator.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Operator.h?rev=164813&r1=164812&r2=164813&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Operator.h (original)
+++ llvm/trunk/include/llvm/Operator.h Fri Sep 28 02:17:01 2012
@@ -35,7 +35,9 @@
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.
More information about the llvm-commits
mailing list