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

Tobias Gysi llvmlistbot at llvm.org
Wed Dec 27 00:38:22 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();
----------------
gysit wrote:

ok, I am traveling today. Will land once I am back (@ivanradanov feel free to go ahead if you are around). The title and description of the PR is somewhat outdated but I think I can adapt it when landing.

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


More information about the Mlir-commits mailing list