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
@ -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…
x
Reference in New Issue
Block a user