Skip to content

Commit 8094e2e

Browse files
committed
Properly check target_features not to trigger an assertion
1 parent ce9faca commit 8094e2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/asm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ impl<'a, 'gcc, 'tcx> AsmBuilderMethods<'tcx> for Builder<'a, 'gcc, 'tcx> {
118118
true
119119
}
120120

121-
fn codegen_inline_asm(&mut self, template: &[InlineAsmTemplatePiece], rust_operands: &[InlineAsmOperandRef<'tcx, Self>], options: InlineAsmOptions, _span: &[Span]) {
121+
fn codegen_inline_asm(&mut self, template: &[InlineAsmTemplatePiece], rust_operands: &[InlineAsmOperandRef<'tcx, Self>], options: InlineAsmOptions, _span: &[Span], _instance: Instance<'_>) {
122122
let asm_arch = self.tcx.sess.asm_arch.unwrap();
123123
let is_x86 = matches!(asm_arch, InlineAsmArch::X86 | InlineAsmArch::X86_64);
124124
let att_dialect = is_x86 && options.contains(InlineAsmOptions::ATT_SYNTAX);

0 commit comments

Comments
 (0)