Files
mercury/compiler
Fergus Henderson a76b0eeb42 Fix a bug introduced by petdr's Dec 2 bug fix which introduced wrapper
Estimated hours taken: 3
Branches: main

Fix a bug introduced by petdr's Dec 2 bug fix which introduced wrapper
functions for unify and compare procs to unbox their arguments,
which caused the tests/valid/unify_typeinfo_bug test case to fail.

The bug was that with --no-special-preds, we were generating invalid
MLDS code, because the code to introduce wrapper functions assumed
that the function being wrapped was defined in the same module,
but with --no-special-preds, the procedure being wrapped is always
private_builtin.unused/0.

In the case of a procedure with arity zero, the wrapper is not needed
(it's just a tail call), so the simplest fix was to just optimize
that case.

compiler/rtti_to_mlds.m:
	If the procedure being wrapped has arity zero, don't bother to
	generate a wrapper function, since it is not needed.
2003-12-11 02:55:54 +00:00
..
2003-12-10 07:09:34 +00:00
2003-11-05 09:01:32 +00:00
2003-12-01 06:53:29 +00:00
2003-11-28 08:51:32 +00:00
2003-12-01 06:53:29 +00:00
2003-12-01 06:53:29 +00:00
2003-12-01 06:53:29 +00:00
2003-12-05 04:19:30 +00:00
2003-12-01 06:53:29 +00:00
2003-12-01 13:16:53 +00:00