Skip to content

Commit d11ef79

Browse files
committed
Fix linting
1 parent ca5dec1 commit d11ef79

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

lib/compiler-singlepass/src/codegen_x64.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -6695,8 +6695,11 @@ impl<'a> FuncGen<'a> {
66956695

66966696
if self.control_stack.is_empty() {
66976697
self.assembler.emit_label(frame.label);
6698-
self.machine
6699-
.finalize_locals(&mut self.assembler, &self.locals, self.config.calling_convention);
6698+
self.machine.finalize_locals(
6699+
&mut self.assembler,
6700+
&self.locals,
6701+
self.config.calling_convention,
6702+
);
67006703
self.assembler.emit_mov(
67016704
Size::S64,
67026705
Location::GPR(GPR::RBP),

lib/compiler-singlepass/src/machine.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,12 @@ impl Machine {
529529
locations
530530
}
531531

532-
pub fn finalize_locals<E: Emitter>(&mut self, a: &mut E, locations: &[Location], calling_convention: CallingConvention) {
532+
pub fn finalize_locals<E: Emitter>(
533+
&mut self,
534+
a: &mut E,
535+
locations: &[Location],
536+
calling_convention: CallingConvention,
537+
) {
533538
// Unwind stack to the "save area".
534539
a.emit_lea(
535540
Size::S64,

0 commit comments

Comments
 (0)