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 | 5c5db553b5c256d0a6f55dde7325c1c829b88e8e (patch) | |
tree | a07b859c9bba34dea0a6834b2e27baf89b0f7095 /lib/Parse/ParseStmt.cpp | |
parent | 405634b215f19eec7183bd8005e34aa5a02f64a1 (diff) |
fix PR6782, an accept invalid. We weren't emitting the diagnostic
returned by SetTypeSpecType.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100443 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseStmt.cpp')
-rw-r--r-- | lib/Parse/ParseStmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Parse/ParseStmt.cpp b/lib/Parse/ParseStmt.cpp index b752b48cfd..b208c50c81 100644 --- a/lib/Parse/ParseStmt.cpp +++ b/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; |