summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-02-09 02:09:16 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-02-09 02:09:16 +0000
commita64e1adf849c07232c2bd27b90a59f29659211e7 (patch)
tree822f827d31f960b003c411bb7d0d9ea768069c9e /llvm/lib/IR
parent840144887a9c7c9d5bef666524efe8904d880cde (diff)
downloadbcm5719-llvm-a64e1adf849c07232c2bd27b90a59f29659211e7.tar.gz
bcm5719-llvm-a64e1adf849c07232c2bd27b90a59f29659211e7.zip
Remove TrailingObjects::operator delete. It's still suffering from
compiler-specific issues. Instead, repeat an 'operator delete' definition in each derived class that is actually deleted, and give up on the static type safety of an error when sized delete is accidentally used on a type derived from TrailingObjects. llvm-svn: 260190
Diffstat (limited to 'llvm/lib/IR')
-rw-r--r--llvm/lib/IR/AttributeImpl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/AttributeImpl.h b/llvm/lib/IR/AttributeImpl.h
index e87f4f7e5c8..33250433988 100644
--- a/llvm/lib/IR/AttributeImpl.h
+++ b/llvm/lib/IR/AttributeImpl.h
@@ -171,7 +171,7 @@ class AttributeSetNode final
void operator=(const AttributeSetNode &) = delete;
AttributeSetNode(const AttributeSetNode &) = delete;
public:
- void operator delete(void *p) { TrailingObjects::operator delete(p); }
+ void operator delete(void *p) { ::operator delete(p); }
static AttributeSetNode *get(LLVMContext &C, ArrayRef<Attribute> Attrs);
@@ -268,7 +268,7 @@ public:
}
}
- void operator delete(void *p) { TrailingObjects::operator delete(p); }
+ void operator delete(void *p) { ::operator delete(p); }
/// \brief Get the context that created this AttributeSetImpl.
LLVMContext &getContext() { return Context; }
OpenPOWER on IntegriCloud