summaryrefslogtreecommitdiff
path: root/include/llvm/Operator.h
diff options
context:
space:
mode:
authorKaelyn Uhrain <rikka@google.com>2012-10-24 19:17:42 +0000
committerKaelyn Uhrain <rikka@google.com>2012-10-24 19:17:42 +0000
commit99abc17832b36007c66369321c0c2f5a2a7713f1 (patch)
treea586b9f4e62f978e0bb306fa7f0799c689f06ddf /include/llvm/Operator.h
parent99112c6b193c54409e2a3a5ea76c3759d5c1244c (diff)
downloadllvm-99abc17832b36007c66369321c0c2f5a2a7713f1.tar.gz
llvm-99abc17832b36007c66369321c0c2f5a2a7713f1.tar.bz2
llvm-99abc17832b36007c66369321c0c2f5a2a7713f1.tar.xz
Make ~Operator() protected so subclasses can inherit it and not have
a bunch of errors for all the Operator subclasses such as: include/llvm/Operator.h:76:7: error: deleted function 'virtual llvm::OverflowingBinaryOperator::~OverflowingBinaryOperator()' include/llvm/Operator.h:43:3: error: overriding non-deleted function 'virtual llvm::Operator::~Operator()' include/llvm/Operator.h:76:7: error: 'virtual llvm::OverflowingBinaryOperator::~OverflowingBinaryOperator()' is implicitly deleted because the default definition would be ill-formed: include/llvm/Operator.h:43:3: error: 'virtual llvm::Operator::~Operator()' is private include/llvm/Operator.h:76:7: error: within this context git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166611 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Operator.h')
-rw-r--r--include/llvm/Operator.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Operator.h b/include/llvm/Operator.h
index 41e6db0b96..b326c11352 100644
--- a/include/llvm/Operator.h
+++ b/include/llvm/Operator.h
@@ -37,6 +37,7 @@ private:
void *operator new(size_t s) LLVM_DELETED_FUNCTION;
Operator() LLVM_DELETED_FUNCTION;
+protected:
// NOTE: Cannot use LLVM_DELETED_FUNCTION because it's not legal to delete
// an overridden method that's not deleted in the base class. Cannot leave
// this unimplemented because that leads to an ODR-violation.