From 09ac351a6fe7cf7197bcea458cddc7dfc17dd533 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 2 Jun 2016 20:40:55 +0200 Subject: [PATCH] fixes codegen regression --- compiler/ccgtypes.nim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/compiler/ccgtypes.nim b/compiler/ccgtypes.nim index 66ddfaeb3d..65e9af6c84 100644 --- a/compiler/ccgtypes.nim +++ b/compiler/ccgtypes.nim @@ -138,9 +138,10 @@ proc mapType(typ: PType): TCTypeKind = var base = skipTypes(typ.lastSon, typedescInst) case base.kind of tyOpenArray, tyArrayConstr, tyArray, tyVarargs: result = ctPtrToArray - of tySet: - if mapSetType(base) == ctArray: result = ctPtrToArray - else: result = ctPtr + #of tySet: + # if mapSetType(base) == ctArray: result = ctPtrToArray + # else: result = ctPtr + # XXX for some reason this breaks the pegs module else: result = ctPtr of tyPointer: result = ctPtr of tySequence: result = ctNimSeq