IR: Unbreak the MSVC build after r225689
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 12 Jan 2015 23:09:14 +0000 (23:09 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 12 Jan 2015 23:09:14 +0000 (23:09 +0000)
llvm-svn: 225727

llvm/include/llvm/IR/Metadata.h

index 1e97150..da6521b 100644 (file)
@@ -826,7 +826,9 @@ class MDNodeFwdDecl : public MDNode, ReplaceableMetadataImpl {
 
 public:
   ~MDNodeFwdDecl() { dropAllReferences(); }
-  using MDNode::operator delete;
+
+  // MSVC doesn't seem to see the alternaive: "using MDNode::operator delete".
+  void operator delete(void *Mem) { MDNode::operator delete(Mem); }
 
   static MDNodeFwdDecl *get(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
     return new (MDs.size()) MDNodeFwdDecl(Context, MDs);