Skip to content

Commit 945a160

Browse files
committed
fix call to LLVMConstInlineAsm
1 parent 6def047 commit 945a160

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/context.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,8 @@ impl Context {
258258
let value = unsafe {
259259
LLVMConstInlineAsm(
260260
ty.as_type_ref(),
261-
assembly.as_mut_ptr() as *mut ::libc::c_char,
262-
assembly.len(),
263-
constraints.as_mut_ptr() as *mut ::libc::c_char,
264-
constraints.len(),
261+
assembly.as_ptr() as *const ::libc::c_char,
262+
constraints.as_ptr() as *const ::libc::c_char,
265263
sideeffects as i32,
266264
alignstack as i32
267265
)

0 commit comments

Comments
 (0)