fixes the regressions introduced by fix for #5076

This commit is contained in:
Araq 2016-11-30 19:02:16 +01:00
commit 20cf28adde
4 changed files with 18 additions and 4 deletions

View file

@ -490,6 +490,7 @@ proc pragmaLine(c: PContext, n: PNode) =
elif y.kind != nkIntLit:
localError(n.info, errIntLiteralExpected)
else:
# XXX this produces weird paths which are not properly resolved:
n.info.fileIndex = msgs.fileInfoIdx(x.strVal)
n.info.line = int16(y.intVal)
else: