[llvm] [ConstantMerge] Only merge constant w/unnamed_addr (PR #124050)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 23 01:26:06 PST 2025


nikic wrote:

For the C semantics issue, I think we'd have to add a new unnamed_addr variant, not change the meaning of the existing one. See https://github.com/llvm/llvm-project/issues/63628 for related issue (though I feel like I saw a longer discussion on this somewhere else...)

I don't think your actual problem is really related though. LLVM shouldn't do transforms that ultimately result in a relocation error. Can you explain in more detail why it happens, maybe with a minimal test case? I'm not sure I understand where the problem originates.

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


More information about the llvm-commits mailing list