================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits