================
@@ -3597,6 +3597,72 @@ static bool
canEmitSpuriousReferenceToVariable(CodeGenFunction &CGF,
}
}
+/// Emit an LValue for a structured binding captured in an OpenMP region.
+/// Handles extracting individual bindings from the captured decomposed
+/// declaration (struct fields, array elements, etc.).
+LValue CodeGenFunction::EmitOMPCapturedBindingLValue(const BindingDecl *BD) {
----------------
alexey-bataev wrote:
Function still skips pieces the VarDecl path handles (nontemporal SIMD
annotation, reference unwrapping edge cases). Fragile long-term. A follow-up to
route through EmitDeclRefLValue on the decomposed storage +
EmitLValue(BD->getBinding()) would be cleaner.
https://github.com/llvm/llvm-project/pull/190832
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits