[Mlir-commits] [mlir] [mlir][llvm] Fixes CallOp builder for the case of indirect call (PR #76240)
Ivan R. Ivanov
llvmlistbot at llvm.org
Sun Dec 24 11:22:13 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();
----------------
ivanradanov wrote:
So I think the change that is needed upstream is to just add an assert that callee is not nullptr. This will make it explicit that that builder will create a direct call.
https://github.com/llvm/llvm-project/pull/76240
More information about the Mlir-commits
mailing list