forked from ocaml-flambda/flambda-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't apply coercions deeply (except for closures) (ocaml-flambda#6)
Coercions only apply to their own domains - that is, a coercion on closures doesn't apply to pairs (which might contain, say, a closure and an int). So we don't want to recurse into types in general when applying coercions. Unfortunately, the situation with closures is ... complicated, as explained in comments.
- Loading branch information
1 parent
31688d7
commit 785f626
Showing
2 changed files
with
96 additions
and
104 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