Fix another llvm.ctors merging bug.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 30 Nov 2015 18:54:24 +0000 (18:54 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 30 Nov 2015 18:54:24 +0000 (18:54 +0000)
commite87f0932d94a1bb29c7d4792adf8742ca165c4ef
treea0f70c8a7851c59a963be2a44c7b86e3df8efaa7
parent8dc6e6c3bb8901096bf31a5aaca5223b5bbf2a4f
Fix another llvm.ctors merging bug.

We were not looking past casts to see if an element should be included
or not.

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