about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/src
diff options
context:
space:
mode:
authorYuki Okushi <yuki.okushi@huawei.com>2021-10-21 04:56:36 +0900
committerYuki Okushi <yuki.okushi@huawei.com>2021-10-26 11:02:51 +0900
commit12647eab7945df1ceddd4d191cdb489abfb05276 (patch)
tree887d412993cc29c6a302ef79f7096e07a9d1f8a3 /compiler/rustc_codegen_gcc/src
parentbd309e4628f5d7d1fa6cbe6a1776e74bcac6292a (diff)
downloadrust-12647eab7945df1ceddd4d191cdb489abfb05276.tar.gz
rust-12647eab7945df1ceddd4d191cdb489abfb05276.zip
Properly check `target_features` not to trigger an assertion
Diffstat (limited to 'compiler/rustc_codegen_gcc/src')
-rw-r--r--compiler/rustc_codegen_gcc/src/asm.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_gcc/src/asm.rs b/compiler/rustc_codegen_gcc/src/asm.rs
index 3b77097e9ad..7c3ed3c5ee9 100644
--- a/compiler/rustc_codegen_gcc/src/asm.rs
+++ b/compiler/rustc_codegen_gcc/src/asm.rs
@@ -118,7 +118,7 @@ impl<'a, 'gcc, 'tcx> AsmBuilderMethods<'tcx> for Builder<'a, 'gcc, 'tcx> {
         true
     }
 
-    fn codegen_inline_asm(&mut self, template: &[InlineAsmTemplatePiece], rust_operands: &[InlineAsmOperandRef<'tcx, Self>], options: InlineAsmOptions, _span: &[Span]) {
+    fn codegen_inline_asm(&mut self, template: &[InlineAsmTemplatePiece], rust_operands: &[InlineAsmOperandRef<'tcx, Self>], options: InlineAsmOptions, _span: &[Span], _instance: Instance<'_>) {
         let asm_arch = self.tcx.sess.asm_arch.unwrap();
         let is_x86 = matches!(asm_arch, InlineAsmArch::X86 | InlineAsmArch::X86_64);
         let att_dialect = is_x86 && options.contains(InlineAsmOptions::ATT_SYNTAX);