arsenm added inline comments.
================ Comment at: clang/lib/CodeGen/CGOpenMPRuntime.cpp:10395-10399 + if (CGF.ConstantFoldsToSimpleInteger(IfCond, CondConstant)) { + IfCondVal = CGF.Builder.getInt1(CondConstant); + } else { + IfCondVal = CGF.EvaluateExprAsBool(IfCond); + } ---------------- Why do you need to do this? I would expect EvaluateExprAsBool to handle the constant case for you Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D150860/new/ https://reviews.llvm.org/D150860 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits