about summary refs log tree commit diff
path: root/tvix/eval
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval')
-rw-r--r--tvix/eval/src/vm.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/tvix/eval/src/vm.rs b/tvix/eval/src/vm.rs
index 107aadb6e068..3dece0641281 100644
--- a/tvix/eval/src/vm.rs
+++ b/tvix/eval/src/vm.rs
@@ -1003,14 +1003,9 @@ impl<'o> VM<'o> {
             }
 
             OpCode::OpForce => {
-                let value = self.pop();
-
-                if let Value::Thunk(thunk) = value {
-                    self.push(Value::Thunk(thunk));
+                if let Some(Value::Thunk(_)) = self.stack.last() {
                     let trampoline = fallible!(self, Thunk::force_trampoline(self));
                     return Ok(trampoline);
-                } else {
-                    self.push(value);
                 }
             }