mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 09:23:44 +00:00
Estimated hours taken: 6
Branches: main, release
Fix a bug with loop invariant hoisting that was breaking some of the solvers
in G12. The problem was that calls (or in the specific instance of the bug
a typeclass method call) had modes which had inst any components were being
hoisted leading to incorrect behaviour. The fix is to not hoist such goals.
compiler/loop_inv.m:
Fix the above bug.
Minor style cleanups - in particular reduce the amount of module
qualification.
compiler/hlds_goal.m:
compiler/inst_util.m:
Minor cleanups.
tests/hard_coded/Mmakefile:
tests/hard_coded/Mercury.options:
tests/hard_coded/any_call_hoist_bug.{m,exp}:
Test case for the above.
1 line
45 B
Plaintext
1 line
45 B
Plaintext
[5 - 561, 4 - 562, 3 - 563, 2 - 564, 1 - 565] |