[clang] [CIR] cir.call with scalar return type (PR #135552)

Sirui Mu via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 15 08:49:40 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()) {
----------------
Lancern wrote:

Updated.

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


More information about the cfe-commits mailing list