diff options
| author | Steve Naroff <snaroff@apple.com> | 2007-09-13 23:52:58 +0000 |
|---|---|---|
| committer | Steve Naroff <snaroff@apple.com> | 2007-09-13 23:52:58 +0000 |
| commit | a23cc796542871932390078233c3b0cd2f74a160 (patch) | |
| tree | a6d81f28cdb6a2cac716bce395dafd1dd5e5a5e1 /clang/Sema/SemaStmt.cpp | |
| parent | 9def2b15c1193ee423ffe11125154bd86dd71a1d (diff) | |
| download | bcm5719-llvm-a23cc796542871932390078233c3b0cd2f74a160.tar.gz bcm5719-llvm-a23cc796542871932390078233c3b0cd2f74a160.zip | |
Move Decl::NextDeclarator (w/ setters/getters) down to ScopedDecl/FieldDecl.
Decl is now svelte:-)
llvm-svn: 41935
Diffstat (limited to 'clang/Sema/SemaStmt.cpp')
| -rw-r--r-- | clang/Sema/SemaStmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/Sema/SemaStmt.cpp b/clang/Sema/SemaStmt.cpp index 2e7e7539858..7b544a28074 100644 --- a/clang/Sema/SemaStmt.cpp +++ b/clang/Sema/SemaStmt.cpp @@ -481,7 +481,7 @@ Sema::ParseForStmt(SourceLocation ForLoc, SourceLocation LParenLoc, if (DeclStmt *DS = dyn_cast_or_null<DeclStmt>(First)) { // C99 6.8.5p3: The declaration part of a 'for' statement shall only declare // identifiers for objects having storage class 'auto' or 'register'. - for (Decl *D = DS->getDecl(); D; D = D->getNextDeclarator()) { + for (ScopedDecl *D = DS->getDecl(); D; D = D->getNextDeclarator()) { BlockVarDecl *BVD = dyn_cast<BlockVarDecl>(D); if (BVD && !BVD->hasLocalStorage()) BVD = 0; |

