summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2024-09-06 02:44:00 +0800
committerGitHub <noreply@github.com>2024-09-05 20:44:00 +0200
commit9ff15da4265eefe09b6cafa26d9c199a2769f6d1 (patch)
treeae7711ffea4738550a7753b810f16d81a507c415 /compiler
parente265b3dfdda0e168662a7101038d1f9ac24692d7 (diff)
downloadNim-9ff15da4265eefe09b6cafa26d9c199a2769f6d1.tar.gz
fixes #23897; Useless empty C files with arc/orc (#24064)
fixes #23897

follow up https://github.com/nim-lang/Nim/pull/21288
follow up https://github.com/nim-lang/Nim/pull/22472

Since #22472 triggers `nimTestErrorFlag` in every module that isn't
empty, this PR removes unnecessary logic
Diffstat (limited to 'compiler')
-rw-r--r--compiler/cgen.nim3
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim
index 24364a9fd..2fde0e9ff 100644
--- a/compiler/cgen.nim
+++ b/compiler/cgen.nim
@@ -1940,9 +1940,6 @@ proc genInitCode(m: BModule) =
 
     if optStackTrace in m.initProc.options and preventStackTrace notin m.flags:
       prc.add(deinitFrame(m.initProc))
-  elif m.config.exc == excGoto:
-    if getCompilerProc(m.g.graph, "nimTestErrorFlag") != nil:
-      m.appcg(prc, "\t#nimTestErrorFlag();$n", [])
 
   prc.addf("}$N", [])