mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
The code that cleans up multiple, isomorphic types has a subtle error that
manifests itself when building LLVM with LTO. <rdar://problem/10913281> llvm-svn: 151576
This commit is contained in:
parent
2a44e34fec
commit
0f3c5db06e
@ -580,7 +580,11 @@ void ModuleLinker::computeTypeMapping() {
|
||||
if (GlobalValue *DGV = getLinkedToGlobal(I))
|
||||
TypeMap.addTypeMapping(DGV->getType(), I->getType());
|
||||
}
|
||||
|
||||
|
||||
#if 0
|
||||
// FIXME: This doesn't play well with LTO. We cannot compile LLVM with this
|
||||
// enabled. <rdar://problem/10913281>.
|
||||
|
||||
// Incorporate types by name, scanning all the types in the source module.
|
||||
// At this point, the destination module may have a type "%foo = { i32 }" for
|
||||
// example. When the source module got loaded into the same LLVMContext, if
|
||||
@ -610,8 +614,8 @@ void ModuleLinker::computeTypeMapping() {
|
||||
if (!SrcStructTypesSet.count(DST))
|
||||
TypeMap.addTypeMapping(DST, ST);
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
// Don't bother incorporating aliases, they aren't generally typed well.
|
||||
|
||||
// Now that we have discovered all of the type equivalences, get a body for
|
||||
|
Loading…
Reference in New Issue
Block a user