-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust MethodMeta's non-const indices by 1, and update all users (#315)
Summary: Pull Request resolved: #315 First step in hiding the off-by-one non-const buffer indices from users. Since fewer users use `MethodMeta::num_non_const_buffers` today (relative to the version on Program), update the behavior here, along with all of its users. After this, we can migrate the users of `Program::get_non_const_buffer_size` to this new API, fixing the off-by-one as we go. I found all of these uses with the search ``` cd fbsource xbgs -sl "non_const_buffer_size" | xargs grep -le '\<non_const_buffer_size\>' ``` Luckily, `Program`'s version of this is called `get_non_const_buffer_size` (with the extra `get_` prefix) so it was straightforward to find code that used `MethodMeta`'s methods. Reviewed By: JacobSzwejbka Differential Revision: D48762563 fbshipit-source-id: bd5b1b7dc7702cf0192261b535d59e8ba80b96e4
- Loading branch information
1 parent
1f558c7
commit 5762802
Showing
4 changed files
with
15 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters