summaryrefslogtreecommitdiffstats
path: root/clang/Sema/SemaStmt.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2007-09-13 23:52:58 +0000
committerSteve Naroff <snaroff@apple.com>2007-09-13 23:52:58 +0000
commita23cc796542871932390078233c3b0cd2f74a160 (patch)
treea6d81f28cdb6a2cac716bce395dafd1dd5e5a5e1 /clang/Sema/SemaStmt.cpp
parent9def2b15c1193ee423ffe11125154bd86dd71a1d (diff)
downloadbcm5719-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.cpp2
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;
OpenPOWER on IntegriCloud