[Mlir-commits] [mlir] [mlir][llvm] Fixes CallOp builder for the case of indirect call (PR #76240)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Dec 27 00:13:35 PST 2023


================
@@ -908,8 +908,9 @@ void CallOp::build(OpBuilder &builder, OperationState &state, TypeRange results,
 
 void CallOp::build(OpBuilder &builder, OperationState &state, TypeRange results,
                    FlatSymbolRefAttr callee, ValueRange args) {
+  auto fargs = callee ? args : args.drop_front();
----------------
gitoleg wrote:

@gysit  
no rights :) 

> We drop the first operand when callee_type is not set so it should be inferred correctly.
@ivanradanov  yes, you're right!


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


More information about the Mlir-commits mailing list