mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-23 12:45:47 +00:00
Fix bug: Linker/2003-08-23-GlobalVarLinking.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8130 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
873c5e7859
commit
77c5f733ac
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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…
x
Reference in New Issue
Block a user