From 86ba0a702c63b4a8ff79a07f9303318feb330642 Mon Sep 17 00:00:00 2001 From: Ben Burdette Date: Sun, 15 May 2022 12:05:51 -0600 Subject: [PATCH] fix thunk issue --- src/libexpr/eval.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index c36bb59fb..d9ea92cc0 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -2073,7 +2073,7 @@ void EvalState::forceValueDeep(Value & v) try { // If the value is a thunk, we're evaling. Otherwise no trace necessary. auto dts = debuggerHook && i.value->isThunk() - ? makeDebugTraceStacker(*this, *v.thunk.expr, *v.thunk.env, positions[i.pos], + ? makeDebugTraceStacker(*this, *i.value->thunk.expr, *i.value->thunk.env, positions[i.pos], "while evaluating the attribute '%1%'", symbols[i.name]) : nullptr;