Skip to content

Commit 43cd2be

Browse files
committed
Attempt to use new asm syntax
1 parent aa4c96a commit 43cd2be

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/hide.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ mod impls {
3535
#[inline]
3636
default fn hide_mem_impl(ptr: *mut Self) {
3737
unsafe {
38-
asm!("" : : "r" (ptr as *mut u8) : "memory");
38+
// llvm_asm!("" : : "r" (ptr as *mut u8) : "memory");
39+
asm!("", in(reg) (ptr as *mut u8), options(nostack));
3940
}
4041
}
4142
}
@@ -44,7 +45,8 @@ mod impls {
4445
#[inline]
4546
fn hide_mem_impl(ptr: *mut Self) {
4647
unsafe {
47-
asm!("" : "=*m" (ptr) : "*0" (ptr));
48+
// llvm_asm!("" : "=*m" (ptr) : "*0" (ptr));
49+
asm!("", in(reg) ptr, options(nostack));
4850
}
4951
}
5052
}

0 commit comments

Comments
 (0)