[clang] [clang][Modules] Keep existing global definition on type mismatch in GetOrCreateLLVMGlobal (PR #223877)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 16 10:03:31 PDT 2026


efriedma-quic wrote:

At the AST level, all declarations of a given variable should be linked together, so CodeGen will treat them as the same global.  This should happen even if a variable has multiple definitions due to module importing.

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


More information about the cfe-commits mailing list