From 137b5f43022c3c5e22a7f28c8012f1d0ea6007c6 Mon Sep 17 00:00:00 2001 From: Parashurama Date: Thu, 2 Feb 2017 11:33:54 +0100 Subject: [PATCH] fixes #4992 --- compiler/vm.nim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler/vm.nim b/compiler/vm.nim index 7ce96f7df..dd91b80e8 100644 --- a/compiler/vm.nim +++ b/compiler/vm.nim @@ -932,7 +932,10 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): TFullReg = c.module var macroCall = newNodeI(nkCall, c.debug[pc]) macroCall.add(newSymNode(prc)) - for i in 1 .. rc-1: macroCall.add(regs[rb+i].regToNode) + for i in 1 .. rc-1: + let node = regs[rb+i].regToNode + node.info = c.debug[pc] + macroCall.add(node) let a = evalTemplate(macroCall, prc, genSymOwner) a.recSetFlagIsRef ensureKind(rkNode)