diff options
author | Araq <rumpf_a@web.de> | 2012-06-23 09:22:57 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-06-23 09:22:57 +0200 |
commit | 1acc7a09c589926a286daaaed11f385c355f3001 (patch) | |
tree | 3bf10bb8ab9d7bc403485ee42d24d1ee90423c7d /compiler/passaux.nim | |
parent | 01ab5948aab5f8a9533392f2d2dc5ca98e5e1458 (diff) | |
download | Nim-1acc7a09c589926a286daaaed11f385c355f3001.tar.gz |
docgen2 improvements
Diffstat (limited to 'compiler/passaux.nim')
-rwxr-xr-x | compiler/passaux.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/passaux.nim b/compiler/passaux.nim index 10eb57217..1ee6023c8 100755 --- a/compiler/passaux.nim +++ b/compiler/passaux.nim @@ -34,7 +34,7 @@ proc verbosePass*(): TPass = proc cleanUp(c: PPassContext, n: PNode): PNode = result = n # we cannot clean up if dead code elimination is activated - if optDeadCodeElim in gGlobalOptions: return + if optDeadCodeElim in gGlobalOptions or n == nil: return case n.kind of nkStmtList: for i in countup(0, sonsLen(n) - 1): discard cleanup(c, n.sons[i]) |