feat(tvix/eval): track source spans for unary operators
Change-Id: I79034a4aa04aea66ec598e33e6eab35e1e19c0d0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6383 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
parent
f14b368514
commit
176e729556
1 changed files with 1 additions and 1 deletions
|
@ -256,7 +256,7 @@ impl Compiler<'_> {
|
|||
ast::UnaryOpKind::Negate => OpCode::OpNegate,
|
||||
};
|
||||
|
||||
self.push_op_old(opcode);
|
||||
self.push_op(opcode, &op);
|
||||
}
|
||||
|
||||
fn compile_binop(&mut self, slot: Option<LocalIdx>, op: ast::BinOp) {
|
||||
|
|
Loading…
Reference in a new issue