================
@@ -1575,6 +1652,48 @@ void CodeGenFunction::EmitOMPReductionClauseInit(
auto *IPriv = Privates.begin();
for (const Expr *IRef : Shareds) {
const auto *PrivateVD =
cast<VarDecl>(cast<DeclRefExpr>(*IPriv)->getDecl());
+ const BindingDecl *BD = nullptr;
----------------
zahiraam wrote:
I chose to add explicit diagnostics rather than extend `ReductionCodeGen`
infrastructure. The diagnostics are in Sema (`actOnOMPReductionKindClause` in
`SemaOpenMP.cpp` around line 20693) .
Non-trivially-destructible types: Tested and confirmed working correctly.
Added test coverage in `structured-bindings-codegen.cpp`
(`test_reduction_binding_nontrivial`).
https://github.com/llvm/llvm-project/pull/190832
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits