[OPENMP]Fix PR50929: Ignored initializer clause in user-defined reduction.
authorAlexey Bataev <a.bataev@outlook.com>
Tue, 29 Jun 2021 19:26:37 +0000 (12:26 -0700)
committerAlexey Bataev <a.bataev@outlook.com>
Wed, 30 Jun 2021 11:55:38 +0000 (04:55 -0700)
commit7fab1146e42ca76a78cccd0aa274168c628d01de
tree761bff798b8a0f603e2a908913848acf153afeb6
parent2fd75507d1855300d0a59451337d0a55b081887c
[OPENMP]Fix PR50929: Ignored initializer clause in user-defined reduction.

No need to try to create the default constructor for private copy, it
will be called automatically in the initializer of the declare
reduction. Fixes balance between constructors/destructors calls.

Differential Revision: https://reviews.llvm.org/D105143
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/for_reduction_codegen_UDR.cpp