Skip to content

Commit 2c14bab

Browse files
committed
llvm_asm → asm
1 parent 9a6a511 commit 2c14bab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test-cargo-miri/build.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(llvm_asm)]
1+
#![feature(asm)]
22

33
use std::env;
44

@@ -7,9 +7,9 @@ compile_error!("`miri` cfg should not be set in build script");
77

88
fn not_in_miri() -> i32 {
99
// Inline assembly definitely does not work in Miri.
10-
let dummy = 42;
10+
let mut dummy = 42;
1111
unsafe {
12-
llvm_asm!("" : : "r"(&dummy));
12+
asm!("/* {} */", in(reg) &mut dummy);
1313
}
1414
return dummy;
1515
}

0 commit comments

Comments
 (0)