-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix arrayref nothrow predicate for undef-able arrays
Previously the nothrow predicate said we were allowed to remove an unused call if it was marked as inbounds. However, this is only true if none of the entries of the array can be `#undef` (i.e. if the element type is a bitstype of bitsunion). Correct the predicate and add a test case. Fixes #28326
- Loading branch information
1 parent
1f52ab6
commit 81ee3ae
Showing
2 changed files
with
29 additions
and
2 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