Files
mercury/tests/hard_coded/error_func.exp
Fergus Henderson b2473d1eff When inlining calls, use the goalinfo from the body of
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.
1997-07-09 08:21:09 +00:00

2 lines
15 B
Plaintext