From 9ff15da4265eefe09b6cafa26d9c199a2769f6d1 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Fri, 6 Sep 2024 02:44:00 +0800 Subject: 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 --- compiler/cgen.nim | 3 --- 1 file changed, 3 deletions(-) (limited to 'compiler') 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", []) -- cgit 1.4.1-2-gfad0