[clang] [CIR] cir.call with scalar return type (PR #135552)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 14 10:49:39 PDT 2025
================
@@ -205,13 +205,15 @@ class CIRBaseBuilderTy : public mlir::OpBuilder {
// Call operators
//===--------------------------------------------------------------------===//
- cir::CallOp createCallOp(mlir::Location loc, mlir::SymbolRefAttr callee) {
- auto op = create<cir::CallOp>(loc, callee);
+ cir::CallOp createCallOp(mlir::Location loc, mlir::SymbolRefAttr callee,
+ mlir::Type returnType = cir::VoidType()) {
----------------
andykaylor wrote:
Can we make this non-optional?
https://github.com/llvm/llvm-project/pull/135552
More information about the cfe-commits
mailing list