[clang] [clang][DebugInfo] Skip alias debug info for static locals without debug info (PR #243405)

Paulius Velesko via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 30 03:55:33 PST 2026


pvelesko wrote:

Thanks, you're right. Your example reproduces on x86 too: the static is emitted through constant evaluation before its function, so it isn't in DeclCache yet and this guard drops the alias. The fix is now in #236525, with your example as a test. Closing this in favor of it.

https://github.com/llvm/llvm-project/pull/243405


More information about the cfe-commits mailing list