summary refs log tree commit diff stats
path: root/compiler/cgen.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2016-12-18 01:58:16 +0100
committerAraq <rumpf_a@web.de>2016-12-18 01:58:16 +0100
commitbf1f1eab1f3784131c66a772684cabf245d89741 (patch)
treecfb5a056bda36272505ce361205015bd74fbfb5f /compiler/cgen.nim
parent31bc063f2d66cf0463d700b041f250ab920c8217 (diff)
downloadNim-bf1f1eab1f3784131c66a772684cabf245d89741.tar.gz
revert line info generation change; produces worse results for other cases
Diffstat (limited to 'compiler/cgen.nim')
-rw-r--r--compiler/cgen.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim
index 0cb1de142..81d13140d 100644
--- a/compiler/cgen.nim
+++ b/compiler/cgen.nim
@@ -192,8 +192,8 @@ proc freshLineInfo(p: BProc; info: TLineInfo): bool =
 
 proc genLineDir(p: BProc, t: PNode) =
   var tt = t
-  while tt.kind in {nkStmtListExpr}+nkCallKinds:
-    tt = tt.lastSon
+  #while tt.kind in {nkStmtListExpr}+nkCallKinds:
+  #  tt = tt.lastSon
   let line = tt.info.safeLineNm
 
   if optEmbedOrigSrc in gGlobalOptions: