summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2009-02-22 19:41:00 +0000
committerSteve Naroff <snaroff@apple.com>2009-02-22 19:41:00 +0000
commitd2c44d224c851579693536bf33fd6b3bd0cfa53e (patch)
tree7190ec014aeeeb12edf484fc13f89775b0249568 /clang/lib
parentc4173fa704860f3d7134e26b87ccd77e73e98163 (diff)
downloadbcm5719-llvm-d2c44d224c851579693536bf33fd6b3bd0cfa53e.tar.gz
bcm5719-llvm-d2c44d224c851579693536bf33fd6b3bd0cfa53e.zip
Minor cleanup, replace bool with qual_empty().
llvm-svn: 65293
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaExprObjC.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaExprObjC.cpp b/clang/lib/Sema/SemaExprObjC.cpp
index d8f3fd4cf74..a593549235e 100644
--- a/clang/lib/Sema/SemaExprObjC.cpp
+++ b/clang/lib/Sema/SemaExprObjC.cpp
@@ -416,12 +416,10 @@ Sema::ExprResult Sema::ActOnInstanceMessage(ExprTy *receiver, Selector Sel,
// The idea is to add class info to InstanceMethodPool.
Method = ClassDecl->lookupInstanceMethod(Sel);
- bool haveQualifiers = false;
if (!Method) {
// Search protocol qualifiers.
for (ObjCQualifiedIdType::qual_iterator QI = OCIReceiver->qual_begin(),
E = OCIReceiver->qual_end(); QI != E; ++QI) {
- haveQualifiers = true;
if ((Method = (*QI)->lookupInstanceMethod(Sel)))
break;
}
@@ -435,7 +433,7 @@ Sema::ExprResult Sema::ActOnInstanceMessage(ExprTy *receiver, Selector Sel,
// If we still haven't found a method, look in the global pool. This
// behavior isn't very desirable, however we need it for GCC
// compatibility. FIXME: should we deviate??
- if (!Method && !haveQualifiers)
+ if (!Method && OCIReceiver->qual_empty())
Method = LookupInstanceMethodInGlobalPool(
Sel, SourceRange(lbrac,rbrac));
}
OpenPOWER on IntegriCloud