summary refs log tree commit diff stats
path: root/compiler/ccgutils.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-10-24 19:20:02 +0200
committerGitHub <noreply@github.com>2016-10-24 19:20:02 +0200
commit6fd27a8a0849e2c1150b5f15b7b61d43b63642b2 (patch)
tree442c06665f3320b78a66b847095386aa67c823fe /compiler/ccgutils.nim
parent3715a5ac91ede3002a3d94dbab2926d96d5ff257 (diff)
parentf5c3eb6a254e9e9f8c6389cb9f707a6ff878bd5c (diff)
downloadNim-6fd27a8a0849e2c1150b5f15b7b61d43b63642b2.tar.gz
Merge pull request #4945 from arnetheduck/cleanup-tyXxx
Cleanup ty xxx
Diffstat (limited to 'compiler/ccgutils.nim')
-rw-r--r--compiler/ccgutils.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/ccgutils.nim b/compiler/ccgutils.nim
index 898c00f73..2216cb4fd 100644
--- a/compiler/ccgutils.nim
+++ b/compiler/ccgutils.nim
@@ -93,7 +93,7 @@ proc getUniqueType*(key: PType): PType =
     # produced instead of ``NI``.
     result = key
   of  tyEmpty, tyNil, tyExpr, tyStmt, tyPointer, tyString,
-      tyCString, tyNone, tyBigNum, tyVoid:
+      tyCString, tyNone, tyVoid:
     result = gCanonicalTypes[k]
     if result == nil:
       gCanonicalTypes[k] = key
@@ -106,7 +106,7 @@ proc getUniqueType*(key: PType): PType =
   of tyDistinct:
     if key.deepCopy != nil: result = key
     else: result = getUniqueType(lastSon(key))
-  of tyGenericInst, tyOrdinal, tyMutable, tyConst, tyStatic:
+  of tyGenericInst, tyOrdinal, tyStatic:
     result = getUniqueType(lastSon(key))
     #let obj = lastSon(key)
     #if obj.sym != nil and obj.sym.name.s == "TOption":
@@ -153,7 +153,7 @@ proc getUniqueType*(key: PType): PType =
     else:
       # ugh, we need the canon here:
       result = slowSearch(key, k)
-  of tyUnused: internalError("getUniqueType")
+  of tyUnused, tyUnused0, tyUnused1, tyUnused2: internalError("getUniqueType")
 
 proc tableGetType*(tab: TIdTable, key: PType): RootRef =
   # returns nil if we need to declare this type