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)
commit21fca5ddcedd4c19303b08aaf1bf6b71399db7b4
tree51e028e9931f4005bc7c7660142528eb883e0d2b
parent325a79d6e98b9192276abe7421ba491fae199446
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254538 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Linker/LinkModules.cpp
test/Linker/Inputs/comdat14.ll [new file with mode: 0644]
test/Linker/comdat14.ll [new file with mode: 0644]