aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/eval-inline.hh
diff options
context:
space:
mode:
authorSilvan Mosberger <contact@infinisil.com>2020-12-12 00:19:05 +0100
committerSilvan Mosberger <contact@infinisil.com>2020-12-12 03:31:48 +0100
commit9f056f7afdb85b8c3bd59638197e356f269129b2 (patch)
treec11183ce63c22f73f8a98baed24386184e4b9438 /src/libexpr/eval-inline.hh
parentfa307875e961a616a049206645a651a76a050a79 (diff)
Introduce Value type setters and make use of them
Diffstat (limited to 'src/libexpr/eval-inline.hh')
-rw-r--r--src/libexpr/eval-inline.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/eval-inline.hh b/src/libexpr/eval-inline.hh
index 30f6ec7db..a0fd9b569 100644
--- a/src/libexpr/eval-inline.hh
+++ b/src/libexpr/eval-inline.hh
@@ -36,11 +36,11 @@ void EvalState::forceValue(Value & v, const Pos & pos)
Env * env = v.thunk.env;
Expr * expr = v.thunk.expr;
try {
- v.type = tBlackhole;
+ v.setBlackhole();
//checkInterrupt();
expr->eval(*this, *env, v);
} catch (...) {
- v.type = tThunk;
+ v.setThunk();
v.thunk.env = env;
v.thunk.expr = expr;
throw;