diff options
author | Araq <rumpf_a@web.de> | 2016-12-18 20:21:50 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2016-12-18 20:21:50 +0100 |
commit | 91935fd915ce643472c81e11a04d1531eacad6e9 (patch) | |
tree | db63c1e68d33c7c183783eb43937b1d1748b02a3 /compiler/cgen.nim | |
parent | 6d10b365feaf6c5634a9698caa4e885f8a47daae (diff) | |
download | Nim-91935fd915ce643472c81e11a04d1531eacad6e9.tar.gz |
fixes #4308, fixes #4905
Diffstat (limited to 'compiler/cgen.nim')
-rw-r--r-- | compiler/cgen.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim index 81d13140d..085e08990 100644 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -194,6 +194,8 @@ proc genLineDir(p: BProc, t: PNode) = var tt = t #while tt.kind in {nkStmtListExpr}+nkCallKinds: # tt = tt.lastSon + if tt.kind in nkCallKinds and tt.len > 1: + tt = tt.sons[1] let line = tt.info.safeLineNm if optEmbedOrigSrc in gGlobalOptions: |