llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Linker discards function addrspaces

Open yotann opened this issue 7 years ago • 2 comments

Bugzilla Link 41154
Resolution FIXED
Resolved on Nov 05, 2019 19:34
Version 8.0
OS All
CC @ekatz,@yotann
Fixed by commit(s) b36e3a8bac3ee95a5a67ab0acb6ef2a2602226a7

Extended Description

When processing functions that have nonzero address spaces, the linker discards the address spaces. For example:

define void @​f() addrspace(40) { ret void }

Sending the above module through the linker will cause the address space to be reset to zero.

yotann avatar Mar 20 '19 14:03 yotann

Fix available for review at https://reviews.llvm.org/D69361

ekatz avatar Oct 23 '19 23:10 ekatz

assigned to @ekatz

yotann avatar Mar 20 '19 14:03 yotann