summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExprObjC.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2014-08-13 23:38:04 +0000
committerFariborz Jahanian <fjahanian@apple.com>2014-08-13 23:38:04 +0000
commitd288fad37473d54e137deebc9444c4af0996c75d (patch)
tree8992075abd524e59dd004169f184217ae7cb380d /clang/lib/Sema/SemaExprObjC.cpp
parentebf09360ec66ed380f491774461aa94cfeb51c8e (diff)
downloadbcm5719-llvm-d288fad37473d54e137deebc9444c4af0996c75d.tar.gz
bcm5719-llvm-d288fad37473d54e137deebc9444c4af0996c75d.zip
Objective-C. Handle case of multiple class methods
found in global pool as well. rdar://16808765 llvm-svn: 215603
Diffstat (limited to 'clang/lib/Sema/SemaExprObjC.cpp')
-rw-r--r--clang/lib/Sema/SemaExprObjC.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExprObjC.cpp b/clang/lib/Sema/SemaExprObjC.cpp
index 80ce9baee75..0facca03915 100644
--- a/clang/lib/Sema/SemaExprObjC.cpp
+++ b/clang/lib/Sema/SemaExprObjC.cpp
@@ -2420,7 +2420,7 @@ ExprResult Sema::BuildInstanceMessage(Expr *Receiver,
receiverIsId);
if (Method)
if (ObjCMethodDecl *BestMethod =
- SelectBestMethod(Sel, ArgsIn, Method->isInstanceMethod()))
+ SelectBestMethod(Sel, ArgsIn, Method->isInstanceMethod()))
Method = BestMethod;
} else if (ReceiverType->isObjCClassType() ||
ReceiverType->isObjCQualifiedClassType()) {
@@ -2473,6 +2473,10 @@ ExprResult Sema::BuildInstanceMessage(Expr *Receiver,
<< Sel << SourceRange(LBracLoc, RBracLoc);
}
}
+ if (Method)
+ if (ObjCMethodDecl *BestMethod =
+ SelectBestMethod(Sel, ArgsIn, Method->isInstanceMethod()))
+ Method = BestMethod;
}
}
}
OpenPOWER on IntegriCloud