aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/ObjCARC.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/Transforms/Scalar/ObjCARC.cpp b/lib/Transforms/Scalar/ObjCARC.cpp
index dbcafb0452..dca6a72fb1 100644
--- a/lib/Transforms/Scalar/ObjCARC.cpp
+++ b/lib/Transforms/Scalar/ObjCARC.cpp
@@ -3840,10 +3840,13 @@ Constant *ObjCARCContract::getStoreStrongCallee(Module *M) {
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(