We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae46d2f commit 66772bcCopy full SHA for 66772bc
src/inline_asm.rs
@@ -108,7 +108,7 @@ pub(crate) fn codegen_inline_asm<'tcx>(
108
109
let mut asm_gen = InlineAssemblyGenerator {
110
tcx: fx.tcx,
111
- arch: InlineAsmArch::X86_64,
+ arch: fx.tcx.sess.asm_arch.unwrap(),
112
template,
113
operands,
114
options,
@@ -308,7 +308,7 @@ impl<'tcx> InlineAssemblyGenerator<'_, 'tcx> {
308
309
let new_slot_fn = |slot_size: &mut Size, reg_class: InlineAsmRegClass| {
310
let reg_size = reg_class
311
- .supported_types(InlineAsmArch::X86_64)
+ .supported_types(self.arch)
312
.iter()
313
.map(|(ty, _)| ty.size())
314
.max()
0 commit comments