]> granicus.if.org Git - clang/commitdiff
Fix a deprecated warning in the last commit.
authorDavid Chisnall <csdavec@swan.ac.uk>
Fri, 10 Aug 2018 12:53:18 +0000 (12:53 +0000)
committerDavid Chisnall <csdavec@swan.ac.uk>
Fri, 10 Aug 2018 12:53:18 +0000 (12:53 +0000)
Done as a separate commit to make it easier to cherry pick the changes
to the release branch.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@339429 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGObjCRuntime.cpp

index 64a9df2bfc0d1250a12ef83c5f2b90eef6d9def8..8390bca737802f173f8520d5a81fdeac083d336d 100644 (file)
@@ -205,7 +205,7 @@ void CGObjCRuntime::EmitTryCatchStmt(CodeGenFunction &CGF,
         // Emit the original filter expression, convert to i32, and return.
         HelperCGF.EmitStmt(FinallyBlock);
 
-        HelperCGF.FinishFunction(FinallyBlock->getLocEnd());
+        HelperCGF.FinishFunction(FinallyBlock->getEndLoc());
 
         llvm::Function *FinallyFunc = HelperCGF.CurFn;