From 8f1fa3e5b014c4301477f2f1872afde0640906b3 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Fri, 5 Mar 2021 09:58:55 +0100 Subject: IC: further progress (#17150) * IC: respect the -f switch * IC: better rod file inspection * progress --- lib/system/excpt.nim | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib/system/excpt.nim') diff --git a/lib/system/excpt.nim b/lib/system/excpt.nim index c3f8255b1..8f7e2cbc7 100644 --- a/lib/system/excpt.nim +++ b/lib/system/excpt.nim @@ -378,7 +378,6 @@ proc reportUnhandledErrorAux(e: ref Exception) {.nodestroy.} = # ugly, but avoids heap allocations :-) template xadd(buf, s, slen) = if L + slen < high(buf): - copyMem(addr(buf[L]), (when s is cstring: s else: cstring(s)), slen) inc L, slen template add(buf, s) = @@ -404,8 +403,6 @@ proc reportUnhandledError(e: ref Exception) {.nodestroy.} = unhandledExceptionHook(e) when hostOS != "any": reportUnhandledErrorAux(e) - else: - discard () proc nimLeaveFinally() {.compilerRtl.} = when defined(cpp) and not defined(noCppExceptions) and not gotoBasedExceptions: -- cgit 1.4.1-2-gfad0