From b3ff1cbc088f81e18fdddb5e3d0632f0fb039d53 Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Mon, 12 Jan 2015 23:09:14 +0000 Subject: [PATCH] IR: Unbreak the MSVC build after r225689 llvm-svn: 225727 --- llvm/include/llvm/IR/Metadata.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/include/llvm/IR/Metadata.h b/llvm/include/llvm/IR/Metadata.h index 1e97150..da6521b 100644 --- a/llvm/include/llvm/IR/Metadata.h +++ b/llvm/include/llvm/IR/Metadata.h @@ -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 MDs) { return new (MDs.size()) MDNodeFwdDecl(Context, MDs); -- 2.7.4