Commit Graph

1 Commits

Author SHA1 Message Date
Peter Wang
590216cceb Fix a bug. An `unused' variable in an invariant call was treated
Branches: main

compiler/loop_inv.m:
        Fix a bug.  An `unused' variable in an invariant call was treated
        like an output variable and added to the invariant variables list,
        and hoisted.

tests/hard_coded/Mercury.options:
tests/hard_coded/loop_inv_test3.exp:
tests/hard_coded/loop_inv_test3.m:
        Add test case.
2009-10-23 05:17:55 +00:00