We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 863b195 commit 8eb9286Copy full SHA for 8eb9286
src/lib.rs
@@ -12,7 +12,7 @@
12
//! testing this crate.
13
14
#![cfg_attr(feature = "allocator-api", feature(allocator_api))]
15
-#![cfg_attr(target_env = "sgx", feature(asm))]
+#![cfg_attr(target_env = "sgx", feature(llvm_asm))]
16
#![cfg_attr(not(feature = "allocator-api"), allow(dead_code))]
17
#![no_std]
18
#![deny(missing_docs)]
src/sgx.rs
@@ -13,7 +13,7 @@ unsafe fn rel_ptr_mut<T>(offset: u64) -> *mut T {
#[inline(always)]
fn image_base() -> u64 {
let base;
- unsafe { asm!("lea IMAGE_BASE(%rip),$0":"=r"(base)) };
+ unsafe { llvm_asm!("lea IMAGE_BASE(%rip),$0":"=r"(base)) };
base
}
19
0 commit comments