[PATCH] D95617: [DWARF] Inlined variables with no location should not have a DW_TAG_variable
Jeremy Morse via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 2 08:20:19 PST 2021
jmorse marked an inline comment as done.
jmorse added inline comments.
================
Comment at: llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp:1796
+
+ // Do not create a concrete entity if there are no locations.
+ if (!HasALocation)
----------------
djtodoro wrote:
> Are we covering inlined variables only with this?
This filter covers everything -- otherwise we risk having some other distinction between inlined and non-inlined variables with no location IMO.
There's a loop at the bottom of this function to create concrete entities for non-inlined variables that weren't given a location, and back in endFunctionImpl there's a loop over all abstract scopes to ensure they get abstract entities created.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95617/new/
https://reviews.llvm.org/D95617
More information about the llvm-commits
mailing list