1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-24 13:33:37 +02:00
llvm-mirror/lib/Linker
Hans Wennborg a905622819 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

llvm-svn: 287353
2016-11-18 17:33:05 +00:00
..
CMakeLists.txt
IRMover.cpp IRMover: Avoid accidentally mapping types from the destination module (PR30799) 2016-11-18 17:33:05 +00:00
LinkDiagnosticInfo.h
LinkModules.cpp [ThinLTO] Don't link module level assembly when importing 2016-10-12 18:39:29 +00:00
LLVMBuild.txt