summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-12-29 02:12:05 -0800
committerGitHub <noreply@github.com>2020-12-29 02:12:05 -0800
commitc9886a49528c08784b1f8e1f7b907024170973dc (patch)
treef4790490f9fa93790adaf610437f31fd7fbbbba5 /compiler
parent672dc5cd87790dc7f44ad62ae66f07e96e665409 (diff)
downloadNim-c9886a49528c08784b1f8e1f7b907024170973dc.tar.gz
use -d:nimCompilerStackraceHints in more places (#16400)
Diffstat (limited to 'compiler')
-rw-r--r--compiler/ccgexprs.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim
index ef3ceae62..45044e0ff 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