-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore a fix to handle_inst_var_subs_2.
A previous change improved the precision of inst matching by making handle_inst_var_subs_2 recurse on the abstract unification of InstA and SubInstB, Recurse(InstA, abstractly_unify_inst(InstA, SubInstB)) The change was temporarily reverted because it is susceptible to infinite recursion when abstractly_unify_inst returns an inst containing larger and larger "unify_insts" in each successive call. compiler/inst_match.m: Restore the fix but avoid infinite recursion. tests/EXPECT_FAIL_TESTS.all_grades: Enable invalid/constrained_poly_insts2 again.
- Loading branch information
Showing
2 changed files
with
12 additions
and
23 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