diff --git a/compiler/cgen.nim b/compiler/cgen.nim index 24364a9fd3..2fde0e9ffd 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", [])