-
Notifications
You must be signed in to change notification settings - Fork 631
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes a range inference overflow with util.align. (#18808)
* In the present state we were folding a non-analyzable util.align lhs to a constant zero because the next power of two of the maximal range is zero. * Detects overflow and will not infer a range. * Fixes some issues with a RHS of zero that were discovered when writing tests for this case (which isn't really valid but was asserting the compiler). Signed-off-by: Stella Laurenzo <[email protected]>
- Loading branch information
1 parent
8da6ba2
commit 929a7da
Showing
4 changed files
with
54 additions
and
11 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