From db97862e570c58ecb7d5482bd77dfc5436af65a3 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Thu, 5 Sep 2024 20:37:17 +0800 Subject: [PATCH] fixes #23897; Useless empty C files with arc/orc --- compiler/cgen.nim | 3 --- 1 file changed, 3 deletions(-) diff --git a/compiler/cgen.nim b/compiler/cgen.nim index 24364a9fd3201..2fde0e9ffdd0e 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", [])