fix PR11464 by preventing the linker from mapping two different struct types from...
authorChris Lattner <sabre@nondot.org>
Tue, 20 Dec 2011 00:03:52 +0000 (00:03 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 20 Dec 2011 00:03:52 +0000 (00:03 +0000)
commit68910509fdd638727ce2f244ab7c0e4346671de1
treee1d05912848e827a9603bd0243fec4bf8f6d3e38
parentf5c9bd07bca0a14afc37b7c28409736e001de96d
fix PR11464 by preventing the linker from mapping two different struct types from the source module onto the same opaque destination type.  An opaque type can only be resolved to one thing or another after all.

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