about summary refs log tree commit diff
path: root/library/stdarch/crates/assert-instr-macro/src
diff options
context:
space:
mode:
Diffstat (limited to 'library/stdarch/crates/assert-instr-macro/src')
-rw-r--r--library/stdarch/crates/assert-instr-macro/src/lib.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/library/stdarch/crates/assert-instr-macro/src/lib.rs b/library/stdarch/crates/assert-instr-macro/src/lib.rs
index e9b027edc16..7f2c9902e2d 100644
--- a/library/stdarch/crates/assert-instr-macro/src/lib.rs
+++ b/library/stdarch/crates/assert-instr-macro/src/lib.rs
@@ -143,10 +143,6 @@ pub fn assert_instr(
         fn #assert_name() {
             #to_test
 
-            // Make sure that the shim is not removed by leaking it to unknown
-            // code:
-            unsafe { llvm_asm!("" : : "r"(#shim_name as usize) : "memory" : "volatile") };
-
             ::stdarch_test::assert(#shim_name as usize,
                                    stringify!(#shim_name),
                                    #instr);