[flang-commits] [clang] [compiler-rt] [flang] [llvm] [mlir] [DebugMetadata][DwarfDebug][CodeView] Support function-local static variables in lexical block scopes (6/7) (PR #187927)
Tobias Gysi via flang-commits
flang-commits at lists.llvm.org
Tue Jun 23 06:09:12 PDT 2026
gysit wrote:
> @chbessonova did some investigation, and it turns out that the same issue also affects DILocalVariables, which already live in retainedNodes.
> See https://gist.github.com/chbessonova/67fc7460ee6a148dd0f9734a25b37564. When
> bin/mlir-translate -import-llvm -mlir-print-debuginfo dilocalvariable-duplication.ll
> is run on it, the output contains duplicate #di_local_variables.
> Would it make more sense to create a separate issue for the duplication problem involving DILocalVariables/DIGlobalVariables living in retainedNodes, and to keep the fix for that separate from this PR?
>
Yes I think it is ok to separate this out.
https://github.com/llvm/llvm-project/pull/187927
More information about the flang-commits
mailing list