diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-28 06:33:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-28 06:33:19 +0000 |
commit | 529efc74ad9c3935d1879615146c1a42413cbdcb (patch) | |
tree | fca614cea9c471273ed2d47e58f144e1dade271b /clang/lib/Sema/SemaStmt.cpp | |
parent | 23b88b73e1982404b75a5175dccab22eb6a3a29a (diff) | |
download | bcm5719-llvm-529efc74ad9c3935d1879615146c1a42413cbdcb.tar.gz bcm5719-llvm-529efc74ad9c3935d1879615146c1a42413cbdcb.zip |
rename some methods.
llvm-svn: 67923
Diffstat (limited to 'clang/lib/Sema/SemaStmt.cpp')
-rw-r--r-- | clang/lib/Sema/SemaStmt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaStmt.cpp b/clang/lib/Sema/SemaStmt.cpp index bbcc71d6e4d..4082d485b80 100644 --- a/clang/lib/Sema/SemaStmt.cpp +++ b/clang/lib/Sema/SemaStmt.cpp @@ -627,11 +627,11 @@ Sema::ActOnObjCForCollectionStmt(SourceLocation ForLoc, if (First) { QualType FirstType; if (DeclStmt *DS = dyn_cast<DeclStmt>(First)) { - if (!DS->hasSolitaryDecl()) + if (!DS->isSingleDecl()) return StmtError(Diag((*DS->decl_begin())->getLocation(), diag::err_toomany_element_decls)); - Decl *D = DS->getSolitaryDecl(); + Decl *D = DS->getSingleDecl(); FirstType = cast<ValueDecl>(D)->getType(); // C99 6.8.5p3: The declaration part of a 'for' statement shall only // declare identifiers for objects having storage class 'auto' or |