about summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/src/asm.rs
diff options
context:
space:
mode:
authorTaiki Endo <te316e89@gmail.com>2024-11-25 00:36:22 +0900
committerTaiki Endo <te316e89@gmail.com>2024-11-25 00:36:22 +0900
commit736c397f41f9030e500199fc28b56a7fab703759 (patch)
treee3301420e984390d487ed22eb4e258698a350017 /compiler/rustc_ast_lowering/src/asm.rs
parentab3cf268b518f0312d86346db3bf79d5ec33b3b7 (diff)
downloadrust-736c397f41f9030e500199fc28b56a7fab703759.tar.gz
rust-736c397f41f9030e500199fc28b56a7fab703759.zip
Fix clobber_abi in RV32E and RV64E inline assembly
Diffstat (limited to 'compiler/rustc_ast_lowering/src/asm.rs')
-rw-r--r--compiler/rustc_ast_lowering/src/asm.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/compiler/rustc_ast_lowering/src/asm.rs b/compiler/rustc_ast_lowering/src/asm.rs
index 215e6d84d0f..32559a10ac3 100644
--- a/compiler/rustc_ast_lowering/src/asm.rs
+++ b/compiler/rustc_ast_lowering/src/asm.rs
@@ -80,7 +80,12 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
         let mut clobber_abis = FxIndexMap::default();
         if let Some(asm_arch) = asm_arch {
             for (abi_name, abi_span) in &asm.clobber_abis {
-                match asm::InlineAsmClobberAbi::parse(asm_arch, &self.tcx.sess.target, *abi_name) {
+                match asm::InlineAsmClobberAbi::parse(
+                    asm_arch,
+                    &self.tcx.sess.target,
+                    &self.tcx.sess.unstable_target_features,
+                    *abi_name,
+                ) {
                     Ok(abi) => {
                         // If the abi was already in the list, emit an error
                         match clobber_abis.get(&abi) {