[Mlir-commits] [mlir] [mlir][EmitC] Fix call ops with zero arguments in func to emitc conversion (PR #94936)
Matthias Gehre
llvmlistbot at llvm.org
Mon Jun 10 02:23:57 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,
----------------
mgehre-amd wrote:
>From reading the code, this seems to only be reached when numResults <= 1. Wouldn't `callOp.getResultTypes()` work here?
https://github.com/llvm/llvm-project/pull/94936
More information about the Mlir-commits
mailing list