projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f49306a
)
Remove a LLVM_DELETED_FUNCTION from destructor to fix -std=c++11 build on gcc 4.7.
author
Craig Topper
<craig.topper@gmail.com>
Fri, 28 Sep 2012 07:17:01 +0000
(07:17 +0000)
committer
Craig Topper
<craig.topper@gmail.com>
Fri, 28 Sep 2012 07:17:01 +0000
(07:17 +0000)
llvm-svn: 164813
llvm/include/llvm/Operator.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/Operator.h
b/llvm/include/llvm/Operator.h
index
cf6d8e2
..
6cc8231
100644
(file)
--- a/
llvm/include/llvm/Operator.h
+++ b/
llvm/include/llvm/Operator.h
@@
-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.