Omit unused implicit argument if return type is immediate.

This commit is contained in:
Tom Lee
2013-05-21 23:17:04 -07:00
parent dbc57584bd
commit 67283eaad2
11 changed files with 131 additions and 110 deletions

View File

@@ -731,10 +731,10 @@ rust_task_deref(rust_task *task) {
// Must call on rust stack.
extern "C" CDECL void
rust_call_tydesc_glue(void *root, size_t *tydesc, size_t glue_index) {
void (*glue_fn)(void *, void *, void *, void *) =
(void (*)(void *, void *, void *, void *))tydesc[glue_index];
void (*glue_fn)(void *, void *, void *) =
(void (*)(void *, void *, void *))tydesc[glue_index];
if (glue_fn)
glue_fn(0, 0, 0, root);
glue_fn(0, 0, root);
}
// Don't run on the Rust stack!
@@ -754,7 +754,7 @@ public:
virtual void run() {
record_sp_limit(0);
fn.f(NULL, fn.env, NULL);
fn.f(fn.env, NULL);
}
};