aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Linker
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-24 19:30:20 +0000
committerChris Lattner <sabre@nondot.org>2003-08-24 19:30:20 +0000
commit77c5f733ac51c122ee3f75b8cc247b923d472909 (patch)
tree7189d91c1ca6bdf3fc83d748ecb69b8508e34d2f /lib/Linker
parent873c5e7859c1534bf92c9e2747f2b70685059598 (diff)
downloadexternal_llvm-77c5f733ac51c122ee3f75b8cc247b923d472909.zip
external_llvm-77c5f733ac51c122ee3f75b8cc247b923d472909.tar.gz
external_llvm-77c5f733ac51c122ee3f75b8cc247b923d472909.tar.bz2
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
Diffstat (limited to 'lib/Linker')
-rw-r--r--lib/Linker/LinkModules.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp
index c6adff2..5280c04 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);