Fix linking when we copy over only a decl.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 2 Dec 2015 19:30:52 +0000 (19:30 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 2 Dec 2015 19:30:52 +0000 (19:30 +0000)
commitf3518c955b3c695d8e3b3468c14bfcf647f48ec8
tree710b8a8e08c22651cb159f28ccfbf4f63b7c8898
parentb79fdff9e26511bf298163067a9feaf71b48d5b4
Fix linking when we copy over only a decl.

We were failing to copy the fact that the GV is weak and in the case of
an alias, producing invalid IR.

llvm-svn: 254538
llvm/lib/Linker/LinkModules.cpp
llvm/test/Linker/Inputs/comdat14.ll [new file with mode: 0644]
llvm/test/Linker/comdat14.ll [new file with mode: 0644]