Skip to content

Commit

Permalink
fix missing dereference
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertdev committed Jul 31, 2023
1 parent 2a6060f commit afc3bd5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/compiler/gen_dev/src/generic64/x86_64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ impl X64_64SystemVLoadArgs {
sym: Symbol,
) {
if let Some(reg) = X86_64SystemV::GENERAL_PARAM_REGS.get(self.general_i) {
storage_manager.general_reg_arg(&sym, reg);
storage_manager.general_reg_arg(&sym, *reg);
self.general_i += 1;
} else {
storage_manager.primitive_stack_arg(&sym, self.argument_offset);
Expand All @@ -959,7 +959,7 @@ impl X64_64SystemVLoadArgs {
sym: Symbol,
) {
if let Some(reg) = X86_64SystemV::FLOAT_PARAM_REGS.get(self.float_i) {
storage_manager.float_reg_arg(&sym, reg);
storage_manager.float_reg_arg(&sym, *reg);
self.float_i += 1;
} else {
storage_manager.primitive_stack_arg(&sym, self.argument_offset);
Expand Down Expand Up @@ -1030,7 +1030,7 @@ impl X64_64WindowsFastCallLoadArgs {
sym: Symbol,
) {
if let Some(reg) = X86_64WindowsFastcall::GENERAL_PARAM_REGS.get(self.general_i) {
storage_manager.general_reg_arg(&sym, reg);
storage_manager.general_reg_arg(&sym, *reg);
self.general_i += 1;
} else {
storage_manager.primitive_stack_arg(&sym, self.argument_offset);
Expand All @@ -1044,7 +1044,7 @@ impl X64_64WindowsFastCallLoadArgs {
sym: Symbol,
) {
if let Some(reg) = X86_64WindowsFastcall::FLOAT_PARAM_REGS.get(self.float_i) {
storage_manager.float_reg_arg(&sym, reg);
storage_manager.float_reg_arg(&sym, *reg);
self.float_i += 1;
} else {
storage_manager.primitive_stack_arg(&sym, self.argument_offset);
Expand Down

0 comments on commit afc3bd5

Please sign in to comment.