[llvm] [SimplifyCFG] Reuse function comdat for switch lookup table (PR #190995)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 8 14:16:36 PDT 2026
8051Enthusiast wrote:
I've tried making it a bit clearer in the issue. The problem is that, when linking the same optimized version with the switch table twice, the linker is forced to choose just one of the two `$foostring` comdat groups. This results in one of the switch tables referencing the globals in the discarded section - and since the symbols have private linkage, the references inside the table cannot resolve to the still active group of the other module.
https://github.com/llvm/llvm-project/pull/190995
More information about the llvm-commits
mailing list