diff options
author | Araq <rumpf_a@web.de> | 2018-05-16 03:06:07 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-05-16 03:06:07 +0200 |
commit | 2a7fc84c86c48c6ca6354c8c2f9232c3f1a0b049 (patch) | |
tree | 2831e8d6b75991bc522660ac7de406c1168d3050 /compiler/rodread.nim | |
parent | 479212995a615fc0a0827cc27756bb8cf865c1b0 (diff) | |
download | Nim-2a7fc84c86c48c6ca6354c8c2f9232c3f1a0b049.tar.gz |
remove ast.emptyNode global; cleanup configuration.nim
Diffstat (limited to 'compiler/rodread.nim')
-rw-r--r-- | compiler/rodread.nim | 2 |
1 files changed, 1 insertions, 1 deletions
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 |