From d8cea95adfe85af92633f2ad456c94659f85733c Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Tue, 29 Dec 2020 02:12:05 -0800 Subject: [PATCH] use -d:nimCompilerStackraceHints in more places (#16400) --- compiler/ccgexprs.nim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim index ef3ceae62f9a1..45044e0ff6fb3 100644 --- a/compiler/ccgexprs.nim +++ b/compiler/ccgexprs.nim @@ -9,6 +9,9 @@ # included from cgen.nim +when defined(nimCompilerStackraceHints): + import std/stackframes + proc getNullValueAuxT(p: BProc; orig, t: PType; obj, constOrNil: PNode, result: var Rope; count: var int; isConst: bool, info: TLineInfo) @@ -2643,6 +2646,8 @@ proc exprComplexConst(p: BProc, n: PNode, d: var TLoc) = d.storage = OnStatic proc expr(p: BProc, n: PNode, d: var TLoc) = + when defined(nimCompilerStackraceHints): + setFrameMsg p.config$n.info & " " & $n.kind p.currLineInfo = n.info case n.kind