Skip to content

Commit

Permalink
use -d:nimCompilerStackraceHints in more places (nim-lang#16400)
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour authored and mildred committed Jan 11, 2021
1 parent 9037b90 commit d8cea95
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compiler/ccgexprs.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d8cea95

Please sign in to comment.