If the linker requested to preserve a linkonce function, we should
honor this even if we drop all uses.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Thanks for the comments.
lib/LTO/LTOCodeGenerator.cpp | ||
---|---|---|
394 | Yes, good catch. It turns out that the next variable declaration was unused, and was taken as body for the if block, which is why the code was still compiling... |
Comment Actions
Address Duncan's comments: turn into weak(_odr) instead of using the llvm.used global
Is there a missing return here?