diff --git a/llvm/lib/Transforms/Utils/Linker.cpp b/llvm/lib/Transforms/Utils/Linker.cpp index c6adff258675e47d5fcf2a8bbef3194683dfa126..5280c04565f3f7fe6a004bb4fbcc9fde841641c6 100644 --- a/llvm/lib/Transforms/Utils/Linker.cpp +++ b/llvm/lib/Transforms/Utils/Linker.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);