diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2020-01-02 15:49:08 -0500 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2020-01-02 16:10:17 -0500 |
commit | 1fcc9b6ff8558efed0c1241c72f69d079baeecf8 (patch) | |
tree | 13abfe361e81a2818bb8a26c8154406edd7e402c /clang/lib | |
parent | 3ddfb04f41ac60529316f64ae5ab1a8ff1cce6e2 (diff) | |
download | bcm5719-llvm-1fcc9b6ff8558efed0c1241c72f69d079baeecf8.tar.gz bcm5719-llvm-1fcc9b6ff8558efed0c1241c72f69d079baeecf8.zip |
[OPENMP] Restore allowing of braced initializers in the declare reduction
init.
Braced initializers were not accepted after the last fix in the initialier.Restored previous functionality.
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/Parse/ParseOpenMP.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseOpenMP.cpp b/clang/lib/Parse/ParseOpenMP.cpp index a62c68b39f1..aaef4cd36d3 100644 --- a/clang/lib/Parse/ParseOpenMP.cpp +++ b/clang/lib/Parse/ParseOpenMP.cpp @@ -430,7 +430,7 @@ void Parser::ParseOpenMPReductionInitializerForDecl(VarDecl *OmpPrivParm) { } PreferredType.enterVariableInit(Tok.getLocation(), OmpPrivParm); - ExprResult Init = ParseAssignmentExpression(); + ExprResult Init = ParseInitializer(); if (Init.isInvalid()) { SkipUntil(tok::r_paren, tok::annot_pragma_openmp_end, StopBeforeMatch); |