summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDeclCXX.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2019-08-22 09:07:25 +0000
committerHans Wennborg <hans@hanshq.net>2019-08-22 09:07:25 +0000
commit307a73221b6481cb10604bfbe346713c9080c7f7 (patch)
tree6695af7205e1c1c3c49b99e321798efc385fa35e /clang/lib/CodeGen/CGDeclCXX.cpp
parent1153dc9603c74f85314505abdae28b3f0dc85c39 (diff)
downloadbcm5719-llvm-307a73221b6481cb10604bfbe346713c9080c7f7.tar.gz
bcm5719-llvm-307a73221b6481cb10604bfbe346713c9080c7f7.zip
Revert r369458 "[DebugInfo] Add debug location to dynamic atexit destructor"
It causes the build to fail with "inlinable function call in a function with debug info must have a !dbg location" in Chromium. See llvm-commits thread for more info. (This also reverts the follow-up in r369474.) > Fixes PR43012 > > Differential Revision: https://reviews.llvm.org/D66328 llvm-svn: 369633
Diffstat (limited to 'clang/lib/CodeGen/CGDeclCXX.cpp')
-rw-r--r--clang/lib/CodeGen/CGDeclCXX.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDeclCXX.cpp b/clang/lib/CodeGen/CGDeclCXX.cpp
index f7b1e389721..7a0605b8450 100644
--- a/clang/lib/CodeGen/CGDeclCXX.cpp
+++ b/clang/lib/CodeGen/CGDeclCXX.cpp
@@ -247,8 +247,6 @@ llvm::Function *CodeGenFunction::createAtExitStub(const VarDecl &VD,
CGF.StartFunction(GlobalDecl(&VD, DynamicInitKind::AtExit),
CGM.getContext().VoidTy, fn, FI, FunctionArgList());
- // Emit an artificial location for this function.
- auto AL = ApplyDebugLocation::CreateArtificial(CGF);
llvm::CallInst *call = CGF.Builder.CreateCall(dtor, addr);
OpenPOWER on IntegriCloud