Skip to content

Commit

Permalink
Fix cg_gcc merge
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Mar 9, 2024
1 parent 2b5b43e commit 9637d7d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions compiler/rustc_codegen_gcc/src/asm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -502,12 +502,7 @@ impl<'a, 'gcc, 'tcx> AsmBuilderMethods<'tcx> for Builder<'a, 'gcc, 'tcx> {
// 4. Generate Extended Asm block

let block = self.llbb();
let extended_asm = if let Some(dest) = dest {
assert!(!labels.is_empty());
block.end_with_extended_asm_goto(None, &template_str, &labels, Some(dest))
} else {
block.add_extended_asm(None, &template_str)
};
let extended_asm = block.add_extended_asm(None, &template_str);

for op in &outputs {
extended_asm.add_output_operand(None, &op.to_constraint(), op.tmp_var);
Expand Down

0 comments on commit 9637d7d

Please sign in to comment.