constants should be tagged with unnamed_addr to merge them #5613
Labels
A-frontend
Area: Compiler frontend (errors, parsing and HIR)
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
LLVM only exposes setUnnamedAddr through the C++ API, sadly.
Marking constants this way allows LLVM to merge the representations, because it informs the compiler that the uniqueness of the address is unimportant.
If you absolutely must have a unique address, it should probably be expressed with an attribute.
The text was updated successfully, but these errors were encountered: