forked from OSchip/llvm-project
Fix. Apply the no capture attribute to the correct parameter.
llvm-svn: 165469
This commit is contained in:
parent
c1e8e74cbd
commit
f1c60d6d04
llvm/lib/Transforms/Scalar
|
@ -3840,10 +3840,13 @@ Constant *ObjCARCContract::getStoreStrongCallee(Module *M) {
|
||||||
Type *I8XX = PointerType::getUnqual(I8X);
|
Type *I8XX = PointerType::getUnqual(I8X);
|
||||||
Type *Params[] = { I8XX, I8X };
|
Type *Params[] = { I8XX, I8X };
|
||||||
|
|
||||||
Attributes::Builder B;
|
Attributes::Builder BNoUnwind;
|
||||||
B.addNoUnwindAttr();
|
BNoUnwind.addNoUnwindAttr();
|
||||||
B.addNoCaptureAttr();
|
Attributes::Builder BNoCapture;
|
||||||
AttrListPtr Attributes = AttrListPtr().addAttr(~0u, Attributes::get(B));
|
BNoCapture.addNoCaptureAttr();
|
||||||
|
AttrListPtr Attributes = AttrListPtr()
|
||||||
|
.addAttr(~0u, Attributes::get(BNoUnwind))
|
||||||
|
.addAttr(1, Attributes::get(BNoCapture));
|
||||||
|
|
||||||
StoreStrongCallee =
|
StoreStrongCallee =
|
||||||
M->getOrInsertFunction(
|
M->getOrInsertFunction(
|
||||||
|
|
Loading…
Reference in New Issue