[llvm] r225727 - IR: Unbreak the MSVC build after r225689

Toma Tabacu Toma.Tabacu at imgtec.com
Wed Jan 14 09:55:26 PST 2015


Did you mean to write "alternative", not "alternaive", in the comment ?

Toma Tabacu

-----Original Message-----
From: llvm-commits-bounces at cs.uiuc.edu [mailto:llvm-commits-bounces at cs.uiuc.edu] On Behalf Of Duncan P. N. Exon Smith
Sent: 12 January 2015 23:09
To: llvm-commits at cs.uiuc.edu
Subject: [llvm] r225727 - IR: Unbreak the MSVC build after r225689

Author: dexonsmith
Date: Mon Jan 12 17:09:14 2015
New Revision: 225727

URL: http://llvm.org/viewvc/llvm-project?rev=225727&view=rev
IR: Unbreak the MSVC build after r225689


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
   ~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);

llvm-commits mailing list
llvm-commits at cs.uiuc.edu

More information about the llvm-commits mailing list