use -d:nimCompilerStackraceHints in more places (#16400)
This commit is contained in:
parent
672dc5cd87
commit
c9886a4952
1 changed files with 5 additions and 0 deletions
|
|
@ -9,6 +9,9 @@
|
||||||
|
|
||||||
# included from cgen.nim
|
# included from cgen.nim
|
||||||
|
|
||||||
|
when defined(nimCompilerStackraceHints):
|
||||||
|
import std/stackframes
|
||||||
|
|
||||||
proc getNullValueAuxT(p: BProc; orig, t: PType; obj, constOrNil: PNode,
|
proc getNullValueAuxT(p: BProc; orig, t: PType; obj, constOrNil: PNode,
|
||||||
result: var Rope; count: var int;
|
result: var Rope; count: var int;
|
||||||
isConst: bool, info: TLineInfo)
|
isConst: bool, info: TLineInfo)
|
||||||
|
|
@ -2643,6 +2646,8 @@ proc exprComplexConst(p: BProc, n: PNode, d: var TLoc) =
|
||||||
d.storage = OnStatic
|
d.storage = OnStatic
|
||||||
|
|
||||||
proc expr(p: BProc, n: PNode, d: var TLoc) =
|
proc expr(p: BProc, n: PNode, d: var TLoc) =
|
||||||
|
when defined(nimCompilerStackraceHints):
|
||||||
|
setFrameMsg p.config$n.info & " " & $n.kind
|
||||||
p.currLineInfo = n.info
|
p.currLineInfo = n.info
|
||||||
|
|
||||||
case n.kind
|
case n.kind
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue