mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-31 15:53:42 +00:00
Fix. Apply the no capture attribute to the correct parameter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165469 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c40abb0b68
commit
3fa5709342
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user