Fix overly aggressive type merging.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 25 Nov 2014 05:59:24 +0000 (05:59 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 25 Nov 2014 05:59:24 +0000 (05:59 +0000)
commit86911440c2af76382db3a5354eb3acd76d8e927e
tree3ded38966b7fb9512d29af1af65416568c9b57c8
parent84f4651f9a4c9d75f75736bae9eca5e75ff8a7ee
Fix overly aggressive type merging.

If we find out that two types are *not* isomorphic, we learn nothing about
opaque sub types in both the source and destination.

llvm-svn: 222727
llvm/lib/Linker/LinkModules.cpp
llvm/test/Linker/Inputs/type-unique-opaque.ll [new file with mode: 0644]
llvm/test/Linker/type-unique-opaque.ll [new file with mode: 0644]