diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-04-13 04:31:48 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-04-13 04:31:48 +0000 |
commit | 9e2f0a4f628b2cefb9a234c3c66f820bdbc966fc (patch) | |
tree | 243b31598db83cc659cf606531530741e4836db4 /clang/lib/Parse/ParseExprCXX.cpp | |
parent | 0563ca1be808a14863d87f3c878c30555328b0bf (diff) | |
download | bcm5719-llvm-9e2f0a4f628b2cefb9a234c3c66f820bdbc966fc.tar.gz bcm5719-llvm-9e2f0a4f628b2cefb9a234c3c66f820bdbc966fc.zip |
PR19339: Disambiguate lambdas with init-captures from designated initializers
properly.
llvm-svn: 206128
Diffstat (limited to 'clang/lib/Parse/ParseExprCXX.cpp')
-rw-r--r-- | clang/lib/Parse/ParseExprCXX.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Parse/ParseExprCXX.cpp b/clang/lib/Parse/ParseExprCXX.cpp index f10ca6ab784..6495d193f7c 100644 --- a/clang/lib/Parse/ParseExprCXX.cpp +++ b/clang/lib/Parse/ParseExprCXX.cpp @@ -837,8 +837,8 @@ Optional<unsigned> Parser::ParseLambdaIntroducer(LambdaIntroducer &Intro, // [..., x = expr // // We need to find the end of the following expression in order to - // determine whether this is an Obj-C message send's receiver, or a - // lambda init-capture. + // determine whether this is an Obj-C message send's receiver, a + // C99 designator, or a lambda init-capture. // // Parse the expression to find where it ends, and annotate it back // onto the tokens. We would have parsed this expression the same way |