use -d:nimCompilerStackraceHints in more places (#16400)

This commit is contained in:
Timothee Cour
2020-12-29 02:12:05 -08:00
committed by GitHub
parent 672dc5cd87
commit c9886a4952

View File

@@ -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