https://llvm.org/bugs/show_bug.cgi?id=29155
We should still get this right when we'll switch to the new API (soon'ish)
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
The change to a test looks wrong.
test/ELF/lto/unnamed-addr-comdat.ll | ||
---|---|---|
11 ↗ | (On Diff #69713) | Why is it being dropped in this case? |
Comment Actions
Found the thinko, it should be
// Merge in the new unnamed_addr attribute. if (WasInserted) S->HasUnnamedAddr = HasUnnamedAddr; else S->HasUnnamedAddr &= HasUnnamedAddr;
Otherwise HasUnnamedAddr is not set correctly in the case you pointed out. Updating