Skip to content

Commit 477d4de

Browse files
gitoleglanza
authored andcommitted
Revert "[mlir][llvm] Fixes CallOp builder for the case of indirect call"
This reverts commit bbaa147.
1 parent e1454ad commit 477d4de

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -976,9 +976,8 @@ void CallOp::build(OpBuilder &builder, OperationState &state, TypeRange results,
976976

977977
void CallOp::build(OpBuilder &builder, OperationState &state, TypeRange results,
978978
FlatSymbolRefAttr callee, ValueRange args) {
979-
auto fargs = callee ? args : args.drop_front();
980979
build(builder, state, results,
981-
TypeAttr::get(getLLVMFuncType(builder.getContext(), results, fargs)),
980+
TypeAttr::get(getLLVMFuncType(builder.getContext(), results, args)),
982981
callee, args, /*fastmathFlags=*/nullptr, /*branch_weights=*/nullptr,
983982
/*CConv=*/nullptr,
984983
/*access_groups=*/nullptr, /*alias_scopes=*/nullptr,

0 commit comments

Comments
 (0)