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:
parent
64c658e617
commit
bca7655aa9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user