diff options
| author | Amanieu d'Antras <amanieu@gmail.com> | 2020-04-09 00:05:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-09 00:05:10 +0100 |
| commit | 04c1a9a9e95b8d6ee4aa28e927b62653663f2df5 (patch) | |
| tree | b504145bdb9dbd5896c81edd335644e3ff735bac /library/stdarch/crates/assert-instr-macro/src | |
| parent | 70f3623b52282024611a7c62ea7ccc1272b8d696 (diff) | |
| download | rust-04c1a9a9e95b8d6ee4aa28e927b62653663f2df5.tar.gz rust-04c1a9a9e95b8d6ee4aa28e927b62653663f2df5.zip | |
Use llvm_asm! instead of asm! (#846)
Diffstat (limited to 'library/stdarch/crates/assert-instr-macro/src')
| -rw-r--r-- | library/stdarch/crates/assert-instr-macro/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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), |
