[llvm-commits] [llvm] r165469 - /llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp
Bill Wendling
isanbard at gmail.com
Mon Oct 8 17:51:40 PDT 2012
Author: void
Date: Mon Oct 8 19:51:40 2012
New Revision: 165469
URL: http://llvm.org/viewvc/llvm-project?rev=165469&view=rev
Log:
Fix. Apply the no capture attribute to the correct parameter.
Modified:
llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp?rev=165469&r1=165468&r2=165469&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp Mon Oct 8 19:51:40 2012
@@ -3840,10 +3840,13 @@
Type *I8XX = PointerType::getUnqual(I8X);
Type *Params[] = { I8XX, I8X };
- Attributes::Builder B;
- B.addNoUnwindAttr();
- B.addNoCaptureAttr();
- AttrListPtr Attributes = AttrListPtr().addAttr(~0u, Attributes::get(B));
+ Attributes::Builder BNoUnwind;
+ BNoUnwind.addNoUnwindAttr();
+ Attributes::Builder BNoCapture;
+ BNoCapture.addNoCaptureAttr();
+ AttrListPtr Attributes = AttrListPtr()
+ .addAttr(~0u, Attributes::get(BNoUnwind))
+ .addAttr(1, Attributes::get(BNoCapture));
StoreStrongCallee =
M->getOrInsertFunction(
More information about the llvm-commits
mailing list