Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lower upcast instructions to bitcast
- upcast and bitcast instructions represent the same operation: an unchecked cast. The only difference is that upcasts are guaranteed to be safe by the type system. - Lowered code can't really be considered type safe anymore because high level relations like subclasses are gone: we are just left with pointers to apparently unrelated structs. Upcasts between lowered types are no longer valid. - This change converts all upcasts to bitcasts so lowered code is still valid.
- Loading branch information
Showing
2 changed files
with
18 additions
and
6 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