-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace calls to
StaticArray(UInt8, 1)#unsafe_as(UInt8)
(#14685)
It's unnecessary to use `unsafe_as` to retrieve the value of a single-item `StaticArray`. However, the entire `StaticArray` is unnecessary because we just need a slice pointing to the location of the value. The resulting machinecode should be identical in all three variants.
- Loading branch information
1 parent
ef04b2e
commit c141700
Showing
3 changed files
with
9 additions
and
9 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