Fix a pasto in the lookup of instance methods in the global pool

llvm-svn: 69996
This commit is contained in:
Douglas Gregor 2009-04-24 22:23:41 +00:00
parent 6525578397
commit 9a1899ba42
1 changed files with 2 additions and 2 deletions

View File

@ -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;