summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaStmt.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-07-24 23:58:27 +0000
committerTed Kremenek <kremenek@apple.com>2008-07-24 23:58:27 +0000
commit77c51b2aa3ab8a793f4243f71ea65f8f5b1f7d4b (patch)
tree8140003a6a4ed93af05b5dcd6b7eb777114e0644 /clang/lib/Sema/SemaStmt.cpp
parent5f36a32e7bf5f7fb05579c5f73f678c55429d1be (diff)
downloadbcm5719-llvm-77c51b2aa3ab8a793f4243f71ea65f8f5b1f7d4b.tar.gz
bcm5719-llvm-77c51b2aa3ab8a793f4243f71ea65f8f5b1f7d4b.zip
Move isObjCObjectPointerType() from Sema to ASTContext.
llvm-svn: 53998
Diffstat (limited to 'clang/lib/Sema/SemaStmt.cpp')
-rw-r--r--clang/lib/Sema/SemaStmt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaStmt.cpp b/clang/lib/Sema/SemaStmt.cpp
index 5b2da087840..1462d3d57c2 100644
--- a/clang/lib/Sema/SemaStmt.cpp
+++ b/clang/lib/Sema/SemaStmt.cpp
@@ -563,14 +563,14 @@ Sema::ActOnObjCForCollectionStmt(SourceLocation ForLoc,
return Diag(D->getLocation(), diag::err_toomany_element_decls);
} else
FirstType = static_cast<Expr*>(first)->getType();
- if (!isObjCObjectPointerType(FirstType))
+ if (!Context.isObjCObjectPointerType(FirstType))
Diag(ForLoc, diag::err_selector_element_type,
FirstType.getAsString(), First->getSourceRange());
}
if (Second) {
DefaultFunctionArrayConversion(Second);
QualType SecondType = Second->getType();
- if (!isObjCObjectPointerType(SecondType))
+ if (!Context.isObjCObjectPointerType(SecondType))
Diag(ForLoc, diag::err_collection_expr_type,
SecondType.getAsString(), Second->getSourceRange());
}
OpenPOWER on IntegriCloud