summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authormetagn <metagngn@gmail.com>2022-10-01 10:07:52 +0300
committerGitHub <noreply@github.com>2022-10-01 09:07:52 +0200
commit24b81e9df6d871bd036d5e38efe631489999a4b7 (patch)
treeb5820edda507ab01fc76bc2e6150a667e6d7f06d /compiler
parent96c5586d030a97d9da2f08b2faacad8d34ebd2e4 (diff)
downloadNim-24b81e9df6d871bd036d5e38efe631489999a4b7.tar.gz
remove hack for deprecated csize in compiler (#20463)
* remove hack for deprecated csize in compiler

* remove test
Diffstat (limited to 'compiler')
-rw-r--r--compiler/ccgexprs.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim
index 63de3ba14..f12023595 100644
--- a/compiler/ccgexprs.nim
+++ b/compiler/ccgexprs.nim
@@ -2252,8 +2252,7 @@ proc genRangeChck(p: BProc, n: PNode, d: var TLoc) =
       cgsym(p.module, raiser)
 
       let boundaryCast =
-        if n0t.skipTypes(abstractVarRange).kind in {tyUInt, tyUInt32, tyUInt64} or
-            (n0t.sym != nil and sfSystemModule in n0t.sym.owner.flags and n0t.sym.name.s == "csize"):
+        if n0t.skipTypes(abstractVarRange).kind in {tyUInt, tyUInt32, tyUInt64}:
           "(NI64)"
         else:
           ""