revert line info generation change; produces worse results for other cases

This commit is contained in:
Araq 2016-12-18 01:58:16 +01:00
commit bf1f1eab1f

View file

@ -192,8 +192,8 @@ proc freshLineInfo(p: BProc; info: TLineInfo): bool =
proc genLineDir(p: BProc, t: PNode) = proc genLineDir(p: BProc, t: PNode) =
var tt = t var tt = t
while tt.kind in {nkStmtListExpr}+nkCallKinds: #while tt.kind in {nkStmtListExpr}+nkCallKinds:
tt = tt.lastSon # tt = tt.lastSon
let line = tt.info.safeLineNm let line = tt.info.safeLineNm
if optEmbedOrigSrc in gGlobalOptions: if optEmbedOrigSrc in gGlobalOptions: