Fix LLVM assertion on SetLinkage.