about summary refs log tree commit diff
path: root/tvix/eval
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-09-01T14·05+0300
committertazjin <tazjin@tvl.su>2022-09-07T19·23+0000
commit176e729556a11cb2533a0e5cf2f53bf8755fba78 (patch)
treec5069927d190e84fd4d847c9691f039d6a1a260b /tvix/eval
parentf14b368514d179571cc0973fe76c757bee060510 (diff)
feat(tvix/eval): track source spans for unary operators r/4716
Change-Id: I79034a4aa04aea66ec598e33e6eab35e1e19c0d0
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6383
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'tvix/eval')
-rw-r--r--tvix/eval/src/compiler/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/eval/src/compiler/mod.rs b/tvix/eval/src/compiler/mod.rs
index b9bbb5c9f1..3a307a1344 100644
--- a/tvix/eval/src/compiler/mod.rs
+++ b/tvix/eval/src/compiler/mod.rs
@@ -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) {