From 91935fd915ce643472c81e11a04d1531eacad6e9 Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 18 Dec 2016 20:21:50 +0100 Subject: fixes #4308, fixes #4905 --- compiler/cgen.nim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compiler/cgen.nim') 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: -- cgit 1.4.1-2-gfad0