mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 23:18:51 +00:00
Fix PR130, and testcase test/Regression/Linker/2003-11-18-TypeResolution.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10075 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
df52d97b57
commit
7dadaa2785
@ -271,6 +271,13 @@ void SymbolTable::refineAbstractType(const DerivedType *OldType,
|
||||
else
|
||||
M->getGlobalList().remove(cast<GlobalVariable>(NewGV));
|
||||
delete NewGV;
|
||||
} else {
|
||||
// If they are not global values, they must be just random values who
|
||||
// happen to conflict now that types have been resolved. If this is
|
||||
// the case, reinsert the value into the new plane, allowing it to get
|
||||
// renamed.
|
||||
assert(V.second->getType() == NewType &&"Type resolution is broken!");
|
||||
insert(V.second);
|
||||
}
|
||||
} else {
|
||||
insertEntry(V.first, NewType, V.second);
|
||||
|
Loading…
Reference in New Issue
Block a user