-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(mem2reg): Remove possibility of underflow (#6107)
# Description ## Problem\* Resolves ICE ran into by @asterite ## Summary\* After #5925 we have a couple counters that both increment and decrement. In theory they are never supposed to underflow. @asterite has discovered a bug with the remaining last stores counter. I would like to implement the remaining last stores removal in a better way that removes the need for this counter to be decremented, but for now I just block if by check we are not decrementing zero. ## Additional Context ## Documentation\* Check one: - [X] No documentation needed. - [ ] Documentation included in this PR. - [ ] **[For Experimental Features]** Documentation to be submitted in a separate PR. # PR Checklist\* - [X] I have tested the changes locally. - [X] I have formatted the changes with [Prettier](https://prettier.io/) and/or `cargo fmt` on default settings. --------- Co-authored-by: jfecher <[email protected]>
- Loading branch information
Showing
1 changed file
with
18 additions
and
16 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