================ @@ -35,6 +83,22 @@ class ScalarExprEmitter : public StmtVisitor<ScalarExprEmitter, mlir::Value> { ScalarExprEmitter(CIRGenFunction &cgf, CIRGenBuilderTy &builder) : cgf(cgf), builder(builder) {} + //===--------------------------------------------------------------------===// + // Utilities + //===--------------------------------------------------------------------===// + + mlir::Value emitPromotedValue(mlir::Value result, QualType promotionType) { + cgf.cgm.errorNYI(result.getLoc(), "floating cast for promoted value"); + return nullptr; + } + + mlir::Value emitUnPromotedValue(mlir::Value result, QualType exprType) { + cgf.cgm.errorNYI(result.getLoc(), "floating cast for unpromoted value"); + return nullptr; ---------------- andykaylor wrote:
```suggestion return {}; ``` https://github.com/llvm/llvm-project/pull/132420 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits