diff options
author | Adrian Prantl <aprantl@apple.com> | 2019-12-05 12:26:16 -0800 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2019-12-05 12:45:10 -0800 |
commit | ce7d35988d1ca5e17758283804ea1f76389dc1f0 (patch) | |
tree | 36b3cf242fa13e67a556a471ef90a12f20d93bee /clang/lib/CodeGen/CGObjC.cpp | |
parent | a1a9aa17b4db08937e458cdda85327b9eff307df (diff) | |
download | bcm5719-llvm-ce7d35988d1ca5e17758283804ea1f76389dc1f0.tar.gz bcm5719-llvm-ce7d35988d1ca5e17758283804ea1f76389dc1f0.zip |
Debug Info: Assert that location is available for cleanups
rdar://57630879
Differential Revision: https://reviews.llvm.org/D71042
Diffstat (limited to 'clang/lib/CodeGen/CGObjC.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGObjC.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGObjC.cpp b/clang/lib/CodeGen/CGObjC.cpp index 14391f3b129..6db05391722 100644 --- a/clang/lib/CodeGen/CGObjC.cpp +++ b/clang/lib/CodeGen/CGObjC.cpp @@ -981,7 +981,7 @@ void CodeGenFunction::GenerateObjCGetter(ObjCImplementationDecl *IMP, generateObjCGetterBody(IMP, PID, OMD, AtomicHelperFn); - FinishFunction(); + FinishFunction(OMD->getEndLoc()); } static bool hasTrivialGetExpr(const ObjCPropertyImplDecl *propImpl) { @@ -1515,7 +1515,7 @@ void CodeGenFunction::GenerateObjCSetter(ObjCImplementationDecl *IMP, generateObjCSetterBody(IMP, PID, AtomicHelperFn); - FinishFunction(); + FinishFunction(OMD->getEndLoc()); } namespace { |