[llvm] r225727 - IR: Unbreak the MSVC build after r225689
Duncan P. N. Exon Smith
dexonsmith at apple.com
Mon Jan 12 15:09:14 PST 2015
Author: dexonsmith
Date: Mon Jan 12 17:09:14 2015
New Revision: 225727
URL: http://llvm.org/viewvc/llvm-project?rev=225727&view=rev
Log:
IR: Unbreak the MSVC build after r225689
Modified:
llvm/trunk/include/llvm/IR/Metadata.h
Modified: llvm/trunk/include/llvm/IR/Metadata.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Metadata.h?rev=225727&r1=225726&r2=225727&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Metadata.h (original)
+++ llvm/trunk/include/llvm/IR/Metadata.h Mon Jan 12 17:09:14 2015
@@ -826,7 +826,9 @@ class MDNodeFwdDecl : public MDNode, Rep
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);
More information about the llvm-commits
mailing list