@@ -1803,25 +1803,25 @@ void CodeGenFunction::EmitARCIntrinsicUse(ArrayRef<llvm::Value*> values) {
1803
1803
1804
1804
1805
1805
static llvm::Constant *createARCRuntimeFunction (CodeGenModule &CGM,
1806
- llvm::FunctionType *type ,
1807
- StringRef fnName ) {
1808
- llvm::Constant *fn = CGM.CreateRuntimeFunction (type, fnName );
1806
+ llvm::FunctionType *FTy ,
1807
+ StringRef Name ) {
1808
+ llvm::Constant *RTF = CGM.CreateRuntimeFunction (FTy, Name );
1809
1809
1810
- if (llvm::Function *f = dyn_cast<llvm::Function>(fn )) {
1810
+ if (auto *F = dyn_cast<llvm::Function>(RTF )) {
1811
1811
// If the target runtime doesn't naturally support ARC, emit weak
1812
1812
// references to the runtime support library. We don't really
1813
1813
// permit this to fail, but we need a particular relocation style.
1814
1814
if (!CGM.getLangOpts ().ObjCRuntime .hasNativeARC () &&
1815
1815
!CGM.getTriple ().isOSBinFormatCOFF ()) {
1816
- f ->setLinkage (llvm::Function::ExternalWeakLinkage);
1817
- } else if (fnName == " objc_retain" || fnName == " objc_release" ) {
1816
+ F ->setLinkage (llvm::Function::ExternalWeakLinkage);
1817
+ } else if (Name == " objc_retain" || Name == " objc_release" ) {
1818
1818
// If we have Native ARC, set nonlazybind attribute for these APIs for
1819
1819
// performance.
1820
- f ->addFnAttr (llvm::Attribute::NonLazyBind);
1820
+ F ->addFnAttr (llvm::Attribute::NonLazyBind);
1821
1821
}
1822
1822
}
1823
1823
1824
- return fn ;
1824
+ return RTF ;
1825
1825
}
1826
1826
1827
1827
// / Perform an operation having the signature
@@ -1832,7 +1832,8 @@ static llvm::Value *emitARCValueOperation(CodeGenFunction &CGF,
1832
1832
llvm::Constant *&fn,
1833
1833
StringRef fnName,
1834
1834
bool isTailCall = false ) {
1835
- if (isa<llvm::ConstantPointerNull>(value)) return value;
1835
+ if (isa<llvm::ConstantPointerNull>(value))
1836
+ return value;
1836
1837
1837
1838
if (!fn) {
1838
1839
llvm::FunctionType *fnType =
0 commit comments