summary refs log tree commit diff stats
path: root/compiler/vmdeps.nim
diff options
context:
space:
mode:
authorJacek Sieka <arnetheduck@gmail.com>2016-10-24 23:19:46 +0800
committerJacek Sieka <arnetheduck@gmail.com>2016-10-24 23:19:46 +0800
commitb3de34548d5d518e3f4f14ae4fdf220578d68ec1 (patch)
treee804bd9a144334893bc7886fc465d68c68cd6690 /compiler/vmdeps.nim
parentf488ed973d5eff91f555182f8d2be664085a0dc8 (diff)
downloadNim-b3de34548d5d518e3f4f14ae4fdf220578d68ec1.tar.gz
clean up tyConst remnants
Diffstat (limited to 'compiler/vmdeps.nim')
-rw-r--r--compiler/vmdeps.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/vmdeps.nim b/compiler/vmdeps.nim
index becef1c5d..5c48c63d5 100644
--- a/compiler/vmdeps.nim
+++ b/compiler/vmdeps.nim
@@ -266,7 +266,6 @@ proc mapTypeToAstX(t: PType; info: TLineInfo;
   of tyUInt16: result = atomicType("uint16", mUint16)
   of tyUInt32: result = atomicType("uint32", mUint32)
   of tyUInt64: result = atomicType("uint64", mUint64)
-  of tyConst: result = mapTypeToBracket("const", mNone, t, info)
   of tyMutable: result = mapTypeToBracket("mutable", mNone, t, info)
   of tyVarargs: result = mapTypeToBracket("varargs", mVarargs, t, info)
   of tyProxy: result = atomicType("error", mNone)
@@ -290,7 +289,7 @@ proc mapTypeToAstX(t: PType; info: TLineInfo;
       result.add atomicType("static", mNone)
       if t.n != nil:
         result.add t.n.copyTree
-  of tyUnused, tyUnused0: internalError("mapTypeToAstX")
+  of tyUnused, tyUnused0, tyUnused1: internalError("mapTypeToAstX")
 
 proc opMapTypeToAst*(t: PType; info: TLineInfo): PNode =
   result = mapTypeToAstX(t, info, false, true)