Estimated hours taken: 4
compiler/inlining.m:
When inlining calls, use the goalinfo from the body of
the callee rather than the goalinfo from the call.
This avoids some bugs which resulted from mismatches
between the goal and its goalinfo; for example, the
old code could lead to nondet unifications, or to calls
to error/1 that don't have instmap delta going to unreachable.
tests/hard_coded/Mmake:
tests/hard_coded/error_func.m:
tests/hard_coded/error_func.exp:
Regression test for the above change.