diff options
Diffstat (limited to 'lib/Linker/LinkModules.cpp')
-rw-r--r-- | lib/Linker/LinkModules.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index c6adff2586..5280c04565 100644 --- a/lib/Linker/LinkModules.cpp +++ b/lib/Linker/LinkModules.cpp @@ -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); |