diff options
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; |

