================ @@ -36,6 +36,18 @@ class ScalarExprEmitter : public StmtVisitor<ScalarExprEmitter, mlir::Value> { bool ira = false) : cgf(cgf), builder(builder), ignoreResultAssign(ira) {} + //===--------------------------------------------------------------------===// + // Utilities + //===--------------------------------------------------------------------===// + + bool TestAndClearIgnoreResultAssign() { + bool i = ignoreResultAssign; + ignoreResultAssign = false; + return i; + } + + mlir::Type convertType(QualType t) { return cgf.convertType(t); } ---------------- andykaylor wrote:
As discussed earlier, let's get rid of wrapper functions like this. https://github.com/llvm/llvm-project/pull/130690 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits