Fixes rusti crashes.
Don't pass the binary name to the LLVMRustExecuteJIT closure; doesn't seem to be needed, anyhow.
This commit is contained in:
parent
f547a671dc
commit
3db74ddd2e
1 changed files with 2 additions and 2 deletions
|
|
@ -157,9 +157,9 @@ pub mod jit {
|
|||
code: entry,
|
||||
env: ptr::null()
|
||||
};
|
||||
let func: &fn(argv: ~[@~str]) = cast::transmute(closure);
|
||||
let func: &fn() = cast::transmute(closure);
|
||||
|
||||
func(~[sess.opts.binary]);
|
||||
func();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue