Use llvm_asm! instead of asm! (#846)

This commit is contained in:
Amanieu d'Antras
2020-04-09 00:05:10 +01:00
committed by GitHub
parent 70f3623b52
commit 04c1a9a9e9
13 changed files with 85 additions and 85 deletions

View File

@@ -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),