Skip to content

Commit

Permalink
Remove outdated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
voltrevo committed Jul 6, 2023
1 parent d9ce30d commit 90c276d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions valuescript_compiler/src/expression_compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -747,11 +747,6 @@ impl<'a> ExpressionCompiler<'a> {
}
};

// Always copy pre-increment value into a register.
// This is a bit heavy-handed (FIXME), but it's consistent with the current policy of
// doing this whenever the variable is mutated, which it clearly is. Really though, the
// issue is when *other* mutations to this variable occur between now and when it's
// inserted.
self
.fnc
.push(Instruction::Mov(Value::Register(reg.clone()), res.clone()));
Expand Down

0 comments on commit 90c276d

Please sign in to comment.