From e068f49f7dc59788cf356acfc77db614db6b28f0 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Tue, 16 Jul 2013 08:43:54 -0400 Subject: Avoid thunks when a fromWith var can be looked up without evaluation Signed-off-by: Shea Levy --- src/libexpr/eval.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libexpr/eval.hh') diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index 0e4ad3db23..c820b28f49 100644 --- a/src/libexpr/eval.hh +++ b/src/libexpr/eval.hh @@ -206,7 +206,7 @@ private: void addPrimOp(const string & name, unsigned int arity, PrimOpFun primOp); - inline Value * lookupVar(Env * env, const VarRef & var); + inline Value * lookupVar(Env * env, const VarRef & var, bool noEval = false); friend class ExprVar; friend class ExprAttrs; -- cgit 1.4.1