Skip to content

Commit 3db74dd

Browse files
committed
Fixes rusti crashes.
Don't pass the binary name to the LLVMRustExecuteJIT closure; doesn't seem to be needed, anyhow.
1 parent f547a67 commit 3db74dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/back/link.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ pub mod jit {
157157
code: entry,
158158
env: ptr::null()
159159
};
160-
let func: &fn(argv: ~[@~str]) = cast::transmute(closure);
160+
let func: &fn() = cast::transmute(closure);
161161

162-
func(~[sess.opts.binary]);
162+
func();
163163
}
164164
}
165165
}

0 commit comments

Comments
 (0)