diff options
author | Vincent Ambo <mail@tazj.in> | 2022-09-01T14·05+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2022-09-07T19·23+0000 |
commit | 176e729556a11cb2533a0e5cf2f53bf8755fba78 (patch) | |
tree | c5069927d190e84fd4d847c9691f039d6a1a260b /tvix/eval | |
parent | f14b368514d179571cc0973fe76c757bee060510 (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.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/eval/src/compiler/mod.rs b/tvix/eval/src/compiler/mod.rs index b9bbb5c9f17e..3a307a1344e3 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) { |