Skip to content

Commit

Permalink
Fixing cconv printing of function signatures with multiple tuples. (i…
Browse files Browse the repository at this point in the history
…ree-org#18595)

The dreaded off-by-one.

Fixes iree-org#18594.
  • Loading branch information
benvanik authored Sep 25, 2024
1 parent 9158a90 commit 129ad45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/iree-dump-module-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ static iree_status_t iree_tooling_print_cconv_fragment(
IREE_RETURN_IF_ERROR(iree_tooling_print_cconv_fragment(
iree_string_view_substr(cconv_fragment, i + 1, end_pos - i - 1)));
fprintf(stdout, ">...");
i = end_pos + 1;
i = end_pos; // +1 from the for-loop
} break;
default:
return iree_make_status(IREE_STATUS_UNIMPLEMENTED,
Expand Down

0 comments on commit 129ad45

Please sign in to comment.