Skip to content

Commit

Permalink
use -d:nimCompilerStackraceHints in more places (#16400)
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour authored Dec 29, 2020
1 parent 672dc5c commit c9886a4
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 c9886a4

Please sign in to comment.