diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-04-24 22:23:41 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-04-24 22:23:41 +0000 |
commit | 27a4566734582b81abbf9af8a949a9049098d344 (patch) | |
tree | d979e5f66c61c64ed42bfe827e5671c3e7b01b32 /lib/Sema/SemaDeclObjC.cpp | |
parent | d5e662d7226b3790848faece71f8522b21373334 (diff) |
Fix a pasto in the lookup of instance methods in the global pool
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69996 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclObjC.cpp')
-rw-r--r-- | lib/Sema/SemaDeclObjC.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp index 05e471b10d..968fddd1af 100644 --- a/lib/Sema/SemaDeclObjC.cpp +++ b/lib/Sema/SemaDeclObjC.cpp @@ -1155,8 +1155,8 @@ ObjCMethodDecl *Sema::LookupInstanceMethodInGlobalPool(Selector Sel, SourceRange R) { llvm::DenseMap<Selector, ObjCMethodList>::iterator Pos = InstanceMethodPool.find(Sel); - if (Pos == InstanceMethodPool.end() && !FactoryMethodPool.count(Sel)) { - if (ExternalSource) + if (Pos == InstanceMethodPool.end()) { + if (ExternalSource && !FactoryMethodPool.count(Sel)) Pos = ReadMethodPool(Sel, /*isInstance=*/true); else return 0; |