Skip to content

Commit 6488874

Browse files
committed
Merge pull request TomBebbington#11 from Hywan/patch-1
LLVMCreateMCJITCompilerForModule expects a u64, not size_t
2 parents 80c49e0 + 394930d commit 6488874

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/engine.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use libc::{c_int, c_uint, c_ulonglong, size_t};
1+
use libc::{c_int, c_uint, c_ulonglong};
22
use ffi::{core, target};
33
use ffi::execution_engine as engine;
44
use ffi::execution_engine::*;
@@ -151,7 +151,7 @@ impl<'a, 'b:'a> ExecutionEngine<'a, 'b> for JitEngine<'a> {
151151
MCJMM: ptr::null_mut()
152152
};
153153
let size = mem::size_of::<LLVMMCJITCompilerOptions>();
154-
let result = engine::LLVMCreateMCJITCompilerForModule(&mut ee, (&*module).into(), &mut options, size as size_t, &mut out);
154+
let result = engine::LLVMCreateMCJITCompilerForModule(&mut ee, (&*module).into(), &mut options, size as u64, &mut out);
155155
if result == 0 {
156156
Ok(ee.into())
157157
} else {

0 commit comments

Comments
 (0)