diff options
Diffstat (limited to 'src/libexpr/eval.cc')
-rw-r--r-- | src/libexpr/eval.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index dc2520229381..330f0191a284 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -1096,9 +1096,7 @@ void EvalState::callPrimOp(Value & fun, Value & arg, Value & v, const Pos & pos) void EvalState::callFunction(Value & fun, Value & arg, Value & v, const Pos & pos) { - std::unique_ptr<FunctionCallTrace> trace; - if (evalSettings.traceFunctionCalls) - trace = std::make_unique<FunctionCallTrace>(pos); + auto trace = evalSettings.traceFunctionCalls ? std::make_unique<FunctionCallTrace>(pos) : nullptr; forceValue(fun, pos); |