diff options
| author | bors <bors@rust-lang.org> | 2021-10-27 03:08:47 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-10-27 03:08:47 +0000 |
| commit | a9b2bfb5edbe879b3bd21986c3da997c21737ab1 (patch) | |
| tree | 641c403918e18a5cbec0c17cf4b40c7eb14c4acc /compiler/rustc_codegen_gcc/src | |
| parent | e269e6bf47f40c9046cd44ab787881d700099252 (diff) | |
| parent | 12647eab7945df1ceddd4d191cdb489abfb05276 (diff) | |
| download | rust-a9b2bfb5edbe879b3bd21986c3da997c21737ab1.tar.gz rust-a9b2bfb5edbe879b3bd21986c3da997c21737ab1.zip | |
Auto merge of #89937 - JohnTitor:fix-89875, r=Amanieu
Properly check `target_features` not to trigger an assertion Fixes #89875 I think it should be a condition instead of an assertion to check if it's a register as it's possible that `reg` is a register class. Also, this isn't related to the issue directly, but `is_target_supported` doesn't check `target_features` attributes. Is there any way to check it on rustc_codegen_llvm? r? `@Amanieu`
Diffstat (limited to 'compiler/rustc_codegen_gcc/src')
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/asm.rs | 2 |
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); |
