summary refs log tree commit diff stats
path: root/compiler/ccgutils.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-01-07 23:09:26 +0100
committerAndreas Rumpf <rumpf_a@web.de>2018-01-07 23:09:26 +0100
commite4081a720190dfdeb347442cdc2c01745476ff9c (patch)
tree2387777859fc0f44c4321f04831d2b322c9ce9ce /compiler/ccgutils.nim
parent3af73682e5382d89055f25ac567337e6958d7c70 (diff)
downloadNim-e4081a720190dfdeb347442cdc2c01745476ff9c.tar.gz
preparations for language extensions: 'sink' and 'lent' types
Diffstat (limited to 'compiler/ccgutils.nim')
-rw-r--r--compiler/ccgutils.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/ccgutils.nim b/compiler/ccgutils.nim
index b1a268c9e..fe28d2209 100644
--- a/compiler/ccgutils.nim
+++ b/compiler/ccgutils.nim
@@ -110,13 +110,13 @@ proc getUniqueType*(key: PType): PType =
     of tyDistinct:
       if key.deepCopy != nil: result = key
       else: result = getUniqueType(lastSon(key))
-    of tyGenericInst, tyOrdinal, tyStatic, tyAlias, tyInferred:
+    of tyGenericInst, tyOrdinal, tyStatic, tyAlias, tySink, tyInferred:
       result = getUniqueType(lastSon(key))
       #let obj = lastSon(key)
       #if obj.sym != nil and obj.sym.name.s == "TOption":
       #  echo "for ", typeToString(key), " I returned "
       #  debug result
-    of tyPtr, tyRef, tyVar:
+    of tyPtr, tyRef, tyVar, tyLent:
       let elemType = lastSon(key)
       if elemType.kind in {tyBool, tyChar, tyInt..tyUInt64}:
         # no canonicalization for integral types, so that e.g. ``ptr pid_t`` is