summary refs log tree commit diff stats
path: root/compiler/vm.nim
diff options
context:
space:
mode:
authorClyybber <darkmine956@gmail.com>2021-04-19 17:19:21 +0200
committerGitHub <noreply@github.com>2021-04-19 17:19:21 +0200
commit438afb4db93dd9fcc6e94995a56f616a9e3d7826 (patch)
tree4d2e6a6883ded94201de2252cf290cfd8befed42 /compiler/vm.nim
parent6de5aa1971b17b0869470d7cdc886ef230103832 (diff)
downloadNim-438afb4db93dd9fcc6e94995a56f616a9e3d7826.tar.gz
Introduce localErrorNode (#17785)
Diffstat (limited to 'compiler/vm.nim')
-rw-r--r--compiler/vm.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/vm.nim b/compiler/vm.nim
index 5c993d77c..d588067c7 100644
--- a/compiler/vm.nim
+++ b/compiler/vm.nim
@@ -2269,10 +2269,10 @@ iterator genericParamsInMacroCall*(macroSym: PSym, call: PNode): (PSym, PNode) =
 # to prevent endless recursion in macro instantiation
 const evalMacroLimit = 1000
 
-proc errorNode(idgen: IdGenerator; owner: PSym, n: PNode): PNode =
-  result = newNodeI(nkEmpty, n.info)
-  result.typ = newType(tyError, nextTypeId idgen, owner)
-  result.typ.flags.incl tfCheckedForDestructor
+#proc errorNode(idgen: IdGenerator; owner: PSym, n: PNode): PNode =
+#  result = newNodeI(nkEmpty, n.info)
+#  result.typ = newType(tyError, nextTypeId idgen, owner)
+#  result.typ.flags.incl tfCheckedForDestructor
 
 proc evalMacroCall*(module: PSym; idgen: IdGenerator; g: ModuleGraph; templInstCounter: ref int;
                     n, nOrig: PNode, sym: PSym): PNode =