diff options
author | Steve Naroff <snaroff@apple.com> | 2009-02-22 19:41:00 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-02-22 19:41:00 +0000 |
commit | ac1337d33197d770157b38812ed5c1ae7cc620c5 (patch) | |
tree | 002318653853f2cebbd85c5f81b305063e14e6ca | |
parent | 0de21fd85d79bccd32f04256f5b3328ab5ed7c95 (diff) |
Minor cleanup, replace bool with qual_empty().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65293 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Sema/SemaExprObjC.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Sema/SemaExprObjC.cpp b/lib/Sema/SemaExprObjC.cpp index d8f3fd4cf7..a593549235 100644 --- a/lib/Sema/SemaExprObjC.cpp +++ b/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)); } |