From b47d9b7b917202ab3b7f1632f8d9462c5f76e869 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Fri, 8 Jul 2016 10:34:12 +0200 Subject: fixes #4371 --- compiler/ccgutils.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/ccgutils.nim') diff --git a/compiler/ccgutils.nim b/compiler/ccgutils.nim index 6dfd7b52c..27b432c2c 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: + tyCString, tyNone, tyBigNum, tyVoid: result = gCanonicalTypes[k] if result == nil: gCanonicalTypes[k] = key -- cgit 1.4.1-2-gfad0