summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorClay Sweetser <Varriount@users.noreply.github.com>2022-09-11 16:56:11 -0400
committerGitHub <noreply@github.com>2022-09-11 16:56:11 -0400
commit8850644cb750c3134f3ae2d54a5d76262888de11 (patch)
treeca1091caf90664ba71c24e68de470a7db2eb37e5 /compiler
parent37b3f62eef16b0e7cb89e18f9ddc1fb96e17fb1b (diff)
downloadNim-8850644cb750c3134f3ae2d54a5d76262888de11.tar.gz
Revert "fixes #20155; repr range with distinct types is broken with ORC" (#20334)
Revert "fixes #20155; repr range with distinct types is broken with ORC (#20158)"

This reverts commit 37b3f62eef16b0e7cb89e18f9ddc1fb96e17fb1b.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/semmagic.nim3
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/semmagic.nim b/compiler/semmagic.nim
index a6832de50..d3e12670b 100644
--- a/compiler/semmagic.nim
+++ b/compiler/semmagic.nim
@@ -190,9 +190,6 @@ proc evalTypeTrait(c: PContext; traitCall: PNode, operand: PType, context: PSym)
       arg = arg.base.skipTypes(skippedTypes + {tyGenericInst})
       if not rec: break
     result = getTypeDescNode(c, arg, operand.owner, traitCall.info)
-  of "skipRanges":
-    var arg = operand.skipTypes({tyRange})
-    result = getTypeDescNode(c, arg, operand.owner, traitCall.info)
   else:
     localError(c.config, traitCall.info, "unknown trait: " & s)
     result = newNodeI(nkEmpty, traitCall.info)