1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Fix bug: Linker/2003-08-23-GlobalVarLinking.ll

llvm-svn: 8130
This commit is contained in:
Chris Lattner 2003-08-24 19:30:20 +00:00
parent 64c658e617
commit bca7655aa9

View File

@ -348,7 +348,7 @@ static GlobalValue *FindGlobalNamed(const std::string &Name, const Type *Ty,
// table, checking each of them for a type-compatible version.
//
for (SymbolTable::iterator I = ST->begin(), E = ST->end(); I != E; ++I)
if (I->first->getType() != Type::TypeTy) {
if (I->first != Type::TypeTy) {
SymbolTable::VarMap &VM = I->second;
// Does this type plane contain an entry with the specified name?
SymbolTable::type_iterator TI = VM.find(Name);