diff options
author | Chris Lattner <sabre@nondot.org> | 2010-04-05 18:18:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-04-05 18:18:31 +0000 |
commit | 005fc1bbcf372a98d4bec7e8f068427a36c4aefa (patch) | |
tree | c81ca3260d440677718aca041d1d71d359379d71 /clang/lib/Parse/ParseStmt.cpp | |
parent | a2433154c890418ebd854e2272af6db974db608c (diff) | |
download | bcm5719-llvm-005fc1bbcf372a98d4bec7e8f068427a36c4aefa.tar.gz bcm5719-llvm-005fc1bbcf372a98d4bec7e8f068427a36c4aefa.zip |
fix PR6782, an accept invalid. We weren't emitting the diagnostic
returned by SetTypeSpecType.
llvm-svn: 100443
Diffstat (limited to 'clang/lib/Parse/ParseStmt.cpp')
-rw-r--r-- | clang/lib/Parse/ParseStmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseStmt.cpp b/clang/lib/Parse/ParseStmt.cpp index b752b48cfd4..b208c50c81b 100644 --- a/clang/lib/Parse/ParseStmt.cpp +++ b/clang/lib/Parse/ParseStmt.cpp @@ -997,7 +997,7 @@ Parser::OwningStmtResult Parser::ParseForStatement(AttributeList *Attr) { SourceLocation DeclStart = Tok.getLocation(), DeclEnd; DeclGroupPtrTy DG = ParseSimpleDeclaration(Declarator::ForContext, DeclEnd, - AttrList); + AttrList, false); FirstPart = Actions.ActOnDeclStmt(DG, DeclStart, Tok.getLocation()); if (Tok.is(tok::semi)) { // for (int x = 4; |