[all-commits] [llvm/llvm-project] 189f31: CGDebugInfo CreatedLimitedType: Drop file/line for...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Tue Jan 26 11:53:44 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 189f311130da38acfe0a3b3b234fc10bd60e34d2
https://github.com/llvm/llvm-project/commit/189f311130da38acfe0a3b3b234fc10bd60e34d2
Author: Fangrui Song <i at maskray.me>
Date: 2021-01-26 (Tue, 26 Jan 2021)
Changed paths:
M clang/lib/CodeGen/CGDebugInfo.cpp
M clang/test/CodeGen/X86/x86_64-arguments.c
Log Message:
-----------
CGDebugInfo CreatedLimitedType: Drop file/line for RecordType with invalid location
For Clang synthesized `__va_list_tag` (`CreateX86_64ABIBuiltinVaListDecl`),
its DW_AT_decl_file/DW_AT_decl_line are arbitrarily set from `CurLoc`.
In a stage 2 `-DCMAKE_BUILD_TYPE=Debug` clang build, I observe that
in driver.cpp, DW_AT_decl_file/DW_AT_decl_line may be set to an `#include` line
(the transitively included file uses va_arg (`__builtin_va_arg`)).
This seems arbitrary. Drop that.
Reviewed By: #debug-info, dblaikie
Differential Revision: https://reviews.llvm.org/D94735
More information about the All-commits
mailing list