From: David Chisnall Date: Fri, 10 Aug 2018 12:53:18 +0000 (+0000) Subject: Fix a deprecated warning in the last commit. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3081101b349813e7d93681f307c7cf34dee47700;p=clang Fix a deprecated warning in the last commit. 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 --- diff --git a/lib/CodeGen/CGObjCRuntime.cpp b/lib/CodeGen/CGObjCRuntime.cpp index 64a9df2bfc..8390bca737 100644 --- a/lib/CodeGen/CGObjCRuntime.cpp +++ b/lib/CodeGen/CGObjCRuntime.cpp @@ -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;