[clang] [CIR] Upstream TernaryOp for VectorType (PR #142393)

Henrich Lauko via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 2 11:32:05 PDT 2025


================
@@ -193,6 +193,36 @@ class ScalarExprEmitter : public StmtVisitor<ScalarExprEmitter, mlir::Value> {
                                 e->getSourceRange().getBegin());
   }
 
+  mlir::Value
+  VisitAbstractConditionalOperator(const AbstractConditionalOperator *e) {
----------------
xlauko wrote:

nit: pull out `condExpr->getType()` from expressions in this function to 

```
clang::Type *condType = condExpr->getType()
```

and use that instead.

https://github.com/llvm/llvm-project/pull/142393


More information about the cfe-commits mailing list