Skip to content

Commit d44b675

Browse files
committed
Change entrypoint parameter order to force it to move all three values
1 parent cd25eb5 commit d44b675

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/assembly-llvm/regparm-module-flag.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ unsafe extern "C" {
1818
}
1919

2020
#[unsafe(no_mangle)]
21-
pub unsafe extern "C" fn entrypoint(len: usize, val: i32, ptr: *mut c_void) -> *mut c_void {
21+
pub unsafe extern "C" fn entrypoint(len: usize, ptr: *mut c_void, val: i32) -> *mut c_void {
2222
unsafe { memset(ptr, val, len) }
2323
}
2424

0 commit comments

Comments
 (0)