Remove unnecessary mov

This commit is contained in:
Andrew Morris
2023-06-22 16:41:26 +10:00
parent f12e3ea11b
commit a4291204cb

View File

@@ -407,12 +407,6 @@ impl<'a> ExpressionCompiler<'a> {
false => self.compile(&assign_expr.right, None),
};
if let Some(target_reg) = target_register {
self
.fnc
.push(Instruction::Mov(rhs.value.clone(), target_reg));
}
let at_is_register = match &at {
TargetAccessor::Register(_) => true,
_ => false,