================
@@ -1306,19 +1306,35 @@ class ScalarExprEmitter : public
StmtVisitor<ScalarExprEmitter, mlir::Value> {
CIRGenFunction::ConditionalEvaluation eval(cgf);
mlir::Value lhsCondV = cgf.evaluateExprAsBool(e->getLHS());
+ bool hasCleanupScopeParent =
+ mlir::isa<cir::CleanupScopeOp>(builder.getBlock()->getParentOp());
----------------
AmrDeveloper wrote:
Yes, that's right, it's about the cleanup scope inside the true or false region
or the ternary. I will push local changes soon.
Thanks
https://github.com/llvm/llvm-project/pull/183143
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits