[clang] [llvm] [Clang][OpenMP] Support for dispatch construct (Sema & Codegen) support (PR #131838)
Alexey Bataev via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 8 13:08:55 PDT 2025
================
@@ -4528,6 +4528,115 @@ void CodeGenFunction::EmitOMPMasterDirective(const OMPMasterDirective &S) {
emitMaster(*this, S);
}
+static Expr *getInitialExprFromCapturedExpr(Expr *Cond) {
----------------
alexey-bataev wrote:
It means, the context (capturedstmt) does not know about this capturedexpr, which means it is captured in the wrong context. You're not fixing the problem, you're overcoming it with this hack. Need to capture the expression in the correct context and emit in the correct context
https://github.com/llvm/llvm-project/pull/131838
More information about the cfe-commits
mailing list