Skip to content

Commit fda287d

Browse files
gitolegbcardosolopes
authored andcommitted
Revert "[mlir][llvm] Fixes CallOp builder for the case of indirect call"
This reverts commit bbaa147.
1 parent 934aafa commit fda287d

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
@@ -908,9 +908,8 @@ void CallOp::build(OpBuilder &builder, OperationState &state, TypeRange results,
908908

909909
void CallOp::build(OpBuilder &builder, OperationState &state, TypeRange results,
910910
FlatSymbolRefAttr callee, ValueRange args) {
911-
auto fargs = callee ? args : args.drop_front();
912911
build(builder, state, results,
913-
TypeAttr::get(getLLVMFuncType(builder.getContext(), results, fargs)),
912+
TypeAttr::get(getLLVMFuncType(builder.getContext(), results, args)),
914913
callee, args, /*fastmathFlags=*/nullptr, /*branch_weights=*/nullptr,
915914
/*CConv=*/nullptr,
916915
/*access_groups=*/nullptr, /*alias_scopes=*/nullptr,

0 commit comments

Comments
 (0)