forked from OSchip/llvm-project
parent
0b912b2673
commit
01df45056e
|
|
@ -528,7 +528,7 @@ namespace {
|
||||||
|
|
||||||
|
|
||||||
bool IsKnownSafe() const {
|
bool IsKnownSafe() const {
|
||||||
return RRI.KnownSafe;
|
return RRI.KnownSafe;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetKnownSafe(const bool NewValue) {
|
void SetKnownSafe(const bool NewValue) {
|
||||||
|
|
@ -1505,7 +1505,7 @@ void ObjCARCOpt::OptimizeIndividualCalls(Function &F) {
|
||||||
|
|
||||||
// Create the declaration lazily.
|
// Create the declaration lazily.
|
||||||
LLVMContext &C = Inst->getContext();
|
LLVMContext &C = Inst->getContext();
|
||||||
|
|
||||||
Constant *Decl = EP.get(ARCRuntimeEntryPoints::EPT_Release);
|
Constant *Decl = EP.get(ARCRuntimeEntryPoints::EPT_Release);
|
||||||
CallInst *NewCall = CallInst::Create(Decl, Call->getArgOperand(0), "",
|
CallInst *NewCall = CallInst::Create(Decl, Call->getArgOperand(0), "",
|
||||||
Call);
|
Call);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue