diff options
Diffstat (limited to 'clang/lib/Parse/ParseExpr.cpp')
| -rw-r--r-- | clang/lib/Parse/ParseExpr.cpp | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/clang/lib/Parse/ParseExpr.cpp b/clang/lib/Parse/ParseExpr.cpp index caf2320f8fc..55b5ff49857 100644 --- a/clang/lib/Parse/ParseExpr.cpp +++ b/clang/lib/Parse/ParseExpr.cpp @@ -2751,6 +2751,7 @@ void Parser::ParseBlockId(SourceLocation CaretLoc) {    // Parse the block-declarator.    Declarator DeclaratorInfo(DS, Declarator::BlockLiteralContext); +  DeclaratorInfo.setFunctionDefinitionKind(FDK_Definition);    ParseDeclarator(DeclaratorInfo);    MaybeParseGNUAttributes(DeclaratorInfo); @@ -2789,6 +2790,7 @@ ExprResult Parser::ParseBlockLiteralExpression() {    // Parse the return type if present.    DeclSpec DS(AttrFactory);    Declarator ParamInfo(DS, Declarator::BlockLiteralContext); +  ParamInfo.setFunctionDefinitionKind(FDK_Definition);    // FIXME: Since the return type isn't actually parsed, it can't be used to    // fill ParamInfo with an initial valid range, so do it manually.    ParamInfo.SetSourceRange(SourceRange(Tok.getLocation(), Tok.getLocation())); | 

