From 997e7d1e5b50597489360222bc16ccf1880875a2 Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 5 Apr 2011 01:45:28 +0200 Subject: bugfix: tmacros1.nim works --- rod/evals.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rod/evals.nim') diff --git a/rod/evals.nim b/rod/evals.nim index 31c0e629a..29f77aeda 100755 --- a/rod/evals.nim +++ b/rod/evals.nim @@ -303,7 +303,8 @@ proc evalVariable(c: PStackFrame, sym: PSym, flags: TEvalFlags): PNode = if result == nil: result = emptyNode return result = IdNodeTableGet(x.mapping, sym) - if not aliasNeeded(result, flags): result = copyTree(result) + if result != nil and not aliasNeeded(result, flags): + result = copyTree(result) if result != nil: return x = x.next result = emptyNode -- cgit 1.4.1-2-gfad0