Skip to content

Commit 1089f2d

Browse files
committed
Dispatch inline asm to the correct arch
1 parent d5baba9 commit 1089f2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/inline_asm.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ pub(crate) fn codegen_inline_asm<'tcx>(
108108

109109
let mut asm_gen = InlineAssemblyGenerator {
110110
tcx: fx.tcx,
111-
arch: InlineAsmArch::X86_64,
111+
arch: fx.tcx.sess.asm_arch.unwrap(),
112112
template,
113113
operands,
114114
options,
@@ -307,7 +307,7 @@ impl<'tcx> InlineAssemblyGenerator<'_, 'tcx> {
307307

308308
let new_slot_fn = |slot_size: &mut Size, reg_class: InlineAsmRegClass| {
309309
let reg_size = reg_class
310-
.supported_types(InlineAsmArch::X86_64)
310+
.supported_types(self.arch)
311311
.iter()
312312
.map(|(ty, _)| ty.size())
313313
.max()

0 commit comments

Comments
 (0)