diff options
Diffstat (limited to 'lib/Sema/SemaStmt.cpp')
-rw-r--r-- | lib/Sema/SemaStmt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaStmt.cpp b/lib/Sema/SemaStmt.cpp index 5b2da08784..1462d3d57c 100644 --- a/lib/Sema/SemaStmt.cpp +++ b/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()); } |