From 2a7fc84c86c48c6ca6354c8c2f9232c3f1a0b049 Mon Sep 17 00:00:00 2001 From: Araq Date: Wed, 16 May 2018 03:06:07 +0200 Subject: remove ast.emptyNode global; cleanup configuration.nim --- compiler/rodread.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rodread.nim') diff --git a/compiler/rodread.nim b/compiler/rodread.nim index 52e7a924c..86cac0d23 100644 --- a/compiler/rodread.nim +++ b/compiler/rodread.nim @@ -966,7 +966,7 @@ proc getBody*(s: PSym): PNode = ## accessor. assert s.kind in routineKinds # prevent crashes due to incorrect macro transformations (bug #2377) - if s.ast.isNil or bodyPos >= s.ast.len: return ast.emptyNode + if s.ast.isNil or bodyPos >= s.ast.len: return newNodeI(nkEmpty, s.info) result = s.ast.sons[bodyPos] if result == nil: assert s.offset != 0 -- cgit 1.4.1-2-gfad0