Use llvm_asm! instead of asm! (#846)
This commit is contained in:
@@ -139,7 +139,7 @@ pub fn assert_instr(
|
||||
|
||||
// Make sure that the shim is not removed by leaking it to unknown
|
||||
// code:
|
||||
unsafe { asm!("" : : "r"(#shim_name as usize) : "memory" : "volatile") };
|
||||
unsafe { llvm_asm!("" : : "r"(#shim_name as usize) : "memory" : "volatile") };
|
||||
|
||||
::stdarch_test::assert(#shim_name as usize,
|
||||
stringify!(#shim_name),
|
||||
|
||||
Reference in New Issue
Block a user