Skip to content

Commit

Permalink
[FIX] more fixing for #8
Browse files Browse the repository at this point in the history
  • Loading branch information
Cr0a3 committed Aug 27, 2024
1 parent 5d30c3e commit 854ed8a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Target/x64/compilation/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ pub(crate) fn CompileCall(call: &Call<Function, Vec<Var>, Var>, registry: &mut T
asm.push( Instr::with2(Mnemonic::Mov, Operand::Reg(reg), Operand::Mem(x64Reg::Rbp - (off as u32))) );
}

for arg in &call.inner2 {
if !block.isVarUsedAfterNode(&boxed, arg) {
registry.backend.drop(arg);
}
}

asm.push(Instr::with0(Mnemonic::StartOptimization));

asm
Expand Down

0 comments on commit 854ed8a

Please sign in to comment.