[PATCH] D113741: [RFC][DwarfDebug][AsmPrinter] Support emitting function-local declaration for a lexical block
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 31 09:38:18 PDT 2022
dblaikie added inline comments.
================
Comment at: llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp:1405
+ std::back_inserter(CUs), [](DwarfCompileUnit *CU) {
+ return !CU->includeMinimalInlineScopes();
+ });
----------------
Rather than filtering here - could we avoid this work by not putting minimal-inline-scope CUs in the SPCUsMap values in the first place?
================
Comment at: llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp:1408
+ }
+ return llvm::make_range(CUs.begin(), CUs.end());
+ }
----------------
Wouldn't this return a dangling reference, since CUs is local to this function?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113741/new/
https://reviews.llvm.org/D113741
More information about the llvm-commits
mailing list