diff options
author | Hans Wennborg <hans@hanshq.net> | 2019-08-22 09:07:25 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2019-08-22 09:07:25 +0000 |
commit | 307a73221b6481cb10604bfbe346713c9080c7f7 (patch) | |
tree | 6695af7205e1c1c3c49b99e321798efc385fa35e /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | 1153dc9603c74f85314505abdae28b3f0dc85c39 (diff) | |
download | bcm5719-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/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 49337936eba..422fbc1e290 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -3564,8 +3564,7 @@ void CGDebugInfo::EmitFunctionStart(GlobalDecl GD, SourceLocation Loc, if (Name.startswith("\01")) Name = Name.substr(1); - if (!HasDecl || D->isImplicit() || D->hasAttr<ArtificialAttr>() || - (isa<VarDecl>(D) && GD.getDynamicInitKind() == DynamicInitKind::AtExit)) { + if (!HasDecl || D->isImplicit() || D->hasAttr<ArtificialAttr>()) { Flags |= llvm::DINode::FlagArtificial; // Artificial functions should not silently reuse CurLoc. CurLoc = SourceLocation(); |