mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-15 23:57:48 +00:00
Do not consider any types that exist in the global symbol table!
llvm-svn: 8084
This commit is contained in:
parent
c94a7e8904
commit
9274d2d21a
@ -347,7 +347,8 @@ static GlobalValue *FindGlobalNamed(const std::string &Name, const Type *Ty,
|
||||
// It doesn't exist exactly, scan through all of the type planes in the symbol
|
||||
// table, checking each of them for a type-compatible version.
|
||||
//
|
||||
for (SymbolTable::iterator I = ST->begin(), E = ST->end(); I != E; ++I) {
|
||||
for (SymbolTable::iterator I = ST->begin(), E = ST->end(); I != E; ++I)
|
||||
if (I->first->getType() != 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