From: David Chisnall Date: Fri, 10 Aug 2018 12:53:18 +0000 (+0000) Subject: Fix a deprecated warning in the last commit. X-Git-Tag: llvmorg-8.0.0-rc1~11284 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b3c11504bd35eada1649eb471acee014b3c9cb97;p=platform%2Fupstream%2Fllvm.git 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. llvm-svn: 339429 --- diff --git a/clang/lib/CodeGen/CGObjCRuntime.cpp b/clang/lib/CodeGen/CGObjCRuntime.cpp index 64a9df2..8390bca 100644 --- a/clang/lib/CodeGen/CGObjCRuntime.cpp +++ b/clang/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;