aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2021-01-26 11:53:25 -0800
committerFangrui Song <i@maskray.me>2021-01-26 11:53:25 -0800
commit189f311130da38acfe0a3b3b234fc10bd60e34d2 (patch)
treef0e08ed93787a3dd598d5904107ec34a3a140af8 /clang/lib/Frontend/CompilerInvocation.cpp
parent31d375f178c27f258ab640afa613a595e67f92f2 (diff)
downloadllvm-189f311130da38acfe0a3b3b234fc10bd60e34d2.zip
llvm-189f311130da38acfe0a3b3b234fc10bd60e34d2.tar.gz
llvm-189f311130da38acfe0a3b3b234fc10bd60e34d2.tar.bz2
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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions