This is PR36686.
If a user of a library is LTOed with that library we take the opportunity to set dso_local, but we don't clear dllimport, which creates an invalid IR.
Differential D44397
[ThinLTO] Clear dllimport when setting dso_local • espindola on Mar 12 2018, 10:55 AM. Authored by
Details
Diff Detail Event TimelineComment Actions Looks reasonable to me. Comment Actions LGTM, but what about the regular LTO case (i.e. we set this directly on the GV in LTO.cpp, instead of on the summary and then propagating in the backends here for ThinLTO)? Comment Actions Teresa Johnson via Phabricator via llvm-commits
The regular lib/Linker code already handles this. Cheers, |