[llvm-commits] [dragonegg] r165901 - /dragonegg/trunk/src/Convert.cpp

Bill Wendling isanbard at gmail.com
Sun Oct 14 02:05:42 PDT 2012


Author: void
Date: Sun Oct 14 04:05:42 2012
New Revision: 165901

URL: http://llvm.org/viewvc/llvm-project?rev=165901&view=rev
Log:
Update to the new API.

Modified:
    dragonegg/trunk/src/Convert.cpp

Modified: dragonegg/trunk/src/Convert.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Convert.cpp?rev=165901&r1=165900&r2=165901&view=diff
==============================================================================
--- dragonegg/trunk/src/Convert.cpp (original)
+++ dragonegg/trunk/src/Convert.cpp Sun Oct 14 04:05:42 2012
@@ -3248,7 +3248,7 @@
     // This call does not throw - mark it 'nounwind'.
     Attributes::Builder B;
     B.addAttribute(Attributes::NoUnwind);
-    PAL = PAL.addAttr(~0, Attributes::get(B));
+    PAL = PAL.addAttr(Callee->getContext(), ~0, Attributes::get(B));
   }
 
   if (!PAL.getFnAttributes().hasAttribute(Attributes::NoUnwind)) {
@@ -3348,7 +3348,7 @@
       // If the argument is split into multiple scalars, assign the
       // attributes to all scalars of the aggregate.
       for (unsigned j = OldSize + 1; j <= CallOperands.size(); ++j) {
-        PAL = PAL.addAttr(j, Attrs);
+        PAL = PAL.addAttr(Callee->getContext(), j, Attrs);
       }
     }
 





More information about the llvm-commits mailing list