[Mlir-commits] [mlir] [mlir][EmitC] Fix call ops with zero arguments in func to emitc conversion (PR #94936)

Simon Camphausen llvmlistbot at llvm.org
Mon Jun 10 02:30:13 PDT 2024


================
@@ -38,7 +38,7 @@ class CallOpConversion final : public OpConversionPattern<func::CallOp> {
 
     rewriter.replaceOpWithNewOp<emitc::CallOp>(
         callOp,
-        callOp.getNumResults() ? callOp.getResult(0).getType() : nullptr,
----------------
simon-camp wrote:

Good idea

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


More information about the Mlir-commits mailing list