Skip to content

Commit

Permalink
Revert "[mlir][llvm] Fixes CallOp builder for the case of indirect call"
Browse files Browse the repository at this point in the history
This reverts commit bbaa147.
  • Loading branch information
gitoleg authored and lanza committed Jan 29, 2024
1 parent f51cdec commit 043aa75
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -908,9 +908,8 @@ 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();
build(builder, state, results,
TypeAttr::get(getLLVMFuncType(builder.getContext(), results, fargs)),
TypeAttr::get(getLLVMFuncType(builder.getContext(), results, args)),
callee, args, /*fastmathFlags=*/nullptr, /*branch_weights=*/nullptr,
/*CConv=*/nullptr,
/*access_groups=*/nullptr, /*alias_scopes=*/nullptr,
Expand Down

0 comments on commit 043aa75

Please sign in to comment.