[llvm-commits] [llvm] r165897 - /llvm/trunk/lib/VMCore/Attributes.cpp

Bill Wendling isanbard at gmail.com
Sun Oct 14 01:25:35 PDT 2012


Author: void
Date: Sun Oct 14 03:25:35 2012
New Revision: 165897

URL: http://llvm.org/viewvc/llvm-project?rev=165897&view=rev
Log:
Don't use the new syntax just yet.

Modified:
    llvm/trunk/lib/VMCore/Attributes.cpp

Modified: llvm/trunk/lib/VMCore/Attributes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Attributes.cpp?rev=165897&r1=165896&r2=165897&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Attributes.cpp (original)
+++ llvm/trunk/lib/VMCore/Attributes.cpp Sun Oct 14 03:25:35 2012
@@ -522,7 +522,7 @@
     // If there are attributes already at this index, merge them in.
     if (i != e && OldAttrList[i].Index == Idx) {
       Attrs =
-        Attributes::get(C, Attributes::Builder(Attrs).
+        Attributes::get(Attributes::Builder(Attrs).
                         addAttributes(OldAttrList[i].Attrs));
       ++i;
     }
@@ -563,7 +563,7 @@
   
   // If there are attributes already at this index, merge them in.
   assert(OldAttrList[i].Index == Idx && "Attribute isn't set?");
-  Attrs = Attributes::get(C, Attributes::Builder(OldAttrList[i].Attrs).
+  Attrs = Attributes::get(Attributes::Builder(OldAttrList[i].Attrs).
                           removeAttributes(Attrs));
   ++i;
   if (Attrs)  // If any attributes left for this parameter, add them.





More information about the llvm-commits mailing list