diff options
author | Araq <rumpf_a@web.de> | 2011-04-11 00:25:24 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-04-11 00:25:24 +0200 |
commit | fc6cc79273f75983e57c43c2a19016e5881ee2b7 (patch) | |
tree | bf114b3c33683250359005d64c325b150f8989c7 /rod/ccgstmts.nim | |
parent | c96aaecfb439cda648e780e0686b02c5f99e0c60 (diff) | |
download | Nim-fc6cc79273f75983e57c43c2a19016e5881ee2b7.tar.gz |
some tests cleaned up; some bugfixes
Diffstat (limited to 'rod/ccgstmts.nim')
-rwxr-xr-x | rod/ccgstmts.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rod/ccgstmts.nim b/rod/ccgstmts.nim index da6ca377f..81a042f25 100755 --- a/rod/ccgstmts.nim +++ b/rod/ccgstmts.nim @@ -83,6 +83,8 @@ proc genConstStmt(p: BProc, t: PNode) = if t.sons[i].kind == nkCommentStmt: continue if t.sons[i].kind != nkConstDef: InternalError(t.info, "genConstStmt") var c = t.sons[i].sons[0].sym + assert c != nil + assert c.typ != nil if c.typ.kind in ConstantDataTypes and not (lfNoDecl in c.loc.flags): # generate the data: fillLoc(c.loc, locData, c.typ, mangleName(c), OnUnknown) |