From 04c1a9a9e95b8d6ee4aa28e927b62653663f2df5 Mon Sep 17 00:00:00 2001 From: Amanieu d'Antras Date: Thu, 9 Apr 2020 00:05:10 +0100 Subject: Use llvm_asm! instead of asm! (#846) --- library/stdarch/crates/assert-instr-macro/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'library/stdarch/crates/assert-instr-macro') diff --git a/library/stdarch/crates/assert-instr-macro/src/lib.rs b/library/stdarch/crates/assert-instr-macro/src/lib.rs index 8198aebc209..75fe9851cae 100644 --- a/library/stdarch/crates/assert-instr-macro/src/lib.rs +++ b/library/stdarch/crates/assert-instr-macro/src/lib.rs @@ -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), -- cgit 1.4.1-3-g733a5