[clang] [llvm] [Clang][OpenMP] Support for dispatch construct (Sema & Codegen) support (PR #131838)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 8 13:05:43 PDT 2025
================
@@ -4528,6 +4528,115 @@ void CodeGenFunction::EmitOMPMasterDirective(const OMPMasterDirective &S) {
emitMaster(*this, S);
}
+static Expr *getInitialExprFromCapturedExpr(Expr *Cond) {
----------------
SunilKuravinakop wrote:
While generating the If-else statement in EmitIfElse(), I am using
`llvm::Value *CondValue = CGF->EvaluateExprAsBool(Condition);`
and
`CGF->Builder.CreateCondBr(CondValue, ThenBlock, ElseBlock);
`
The `EvaluateExprAsBool `needs a `CapturedExpr.` Using `NoContextC->getCondition()` results in a core dump.
https://github.com/llvm/llvm-project/pull/131838
More information about the llvm-commits
mailing list