llvm/lib/Linker
Hans Wennborg 3e367e61a7 IRMover: Avoid accidentally mapping types from the destination module (PR30799)
During Module linking, it's possible for SrcM->getIdentifiedStructTypes();
to return types that are actually defined in the destination module
(DstM). Depending on how the bitcode file was read,
getIdentifiedStructTypes() might do a walk over all values, including
metadata nodes, looking for types. In my case, a debug info metadata
node was shared between the two modules, and it referred to a type
defined in the destination module (see test case).

Differential Revision: https://reviews.llvm.org/D26212

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287353 91177308-0d34-0410-b5e6-96231b3b80d8
2016-11-18 17:33:05 +00:00
..
CMakeLists.txt Slit lib/Linker in two. 2015-12-10 14:19:35 +00:00
IRMover.cpp IRMover: Avoid accidentally mapping types from the destination module (PR30799) 2016-11-18 17:33:05 +00:00
LinkDiagnosticInfo.h Slit lib/Linker in two. 2015-12-10 14:19:35 +00:00
LinkModules.cpp [ThinLTO] Don't link module level assembly when importing 2016-10-12 18:39:29 +00:00
LLVMBuild.txt [Linker] Kill Linker::LoadObject which is dead, and drop the BitReader dependency again. 2013-01-18 19:37:11 +00:00