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
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp
index 05e471b..968fddd 100644
--- a/lib/Sema/SemaDeclObjC.cpp
+++ b/lib/Sema/SemaDeclObjC.cpp
@@ -1155,8 +1155,8 @@
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;