summaryrefslogtreecommitdiffstats
path: root/clang/Sema/SemaExprObjC.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2008-01-04 23:59:09 +0000
committerFariborz Jahanian <fjahanian@apple.com>2008-01-04 23:59:09 +0000
commitbad32189545db759e9db15ff07e04b23aaa9b2e8 (patch)
tree7015471bf96111cbf4f6b4b569ad403a3783ef1c /clang/Sema/SemaExprObjC.cpp
parent6bb0c526282c2f1ebc15099b7c025cf5e7d1256d (diff)
downloadbcm5719-llvm-bad32189545db759e9db15ff07e04b23aaa9b2e8.tar.gz
bcm5719-llvm-bad32189545db759e9db15ff07e04b23aaa9b2e8.zip
Minor refactoring of foreach's semantics code per Chris's suggetion.
llvm-svn: 45604
Diffstat (limited to 'clang/Sema/SemaExprObjC.cpp')
-rw-r--r--clang/Sema/SemaExprObjC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/Sema/SemaExprObjC.cpp b/clang/Sema/SemaExprObjC.cpp
index e976876c2b3..a82f6fb493e 100644
--- a/clang/Sema/SemaExprObjC.cpp
+++ b/clang/Sema/SemaExprObjC.cpp
@@ -217,7 +217,7 @@ Sema::ExprResult Sema::ActOnInstanceMessage(
return true;
}
} else {
- bool receiverIsQualId = dyn_cast<ObjcQualifiedIdType>(receiverType) != 0;
+ bool receiverIsQualId = isa<ObjcQualifiedIdType>(receiverType);
// FIXME (snaroff): checking in this code from Patrick. Needs to be
// revisited. how do we get the ClassDecl from the receiver expression?
if (!receiverIsQualId)
OpenPOWER on IntegriCloud