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 | 7e24e82a70a2c681f4291a3397bcd1e1005f251a (patch) | |
tree | db2f005b698e34f2b6c8e21d3636e7c5e39d43ff /lib/Sema/SemaStmt.cpp | |
parent | fe95deaf66e4fbd82d44b5f6afa8162fa69cb85c (diff) |
rename some methods.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67923 91177308-0d34-0410-b5e6-96231b3b80d8
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 bbcc71d6e4..4082d485b8 100644 --- a/lib/Sema/SemaStmt.cpp +++ b/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 |