summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-06-02 20:40:55 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-06-02 20:41:08 +0200
commit09ac351a6fe7cf7197bcea458cddc7dfc17dd533 (patch)
tree1f912292a416edf7f4cc667b639b081251acfb2d /compiler
parent9df1704aa159139e99c2a887d6a3b7cf0cbf75ae (diff)
downloadNim-09ac351a6fe7cf7197bcea458cddc7dfc17dd533.tar.gz
fixes codegen regression
Diffstat (limited to 'compiler')
-rw-r--r--compiler/ccgtypes.nim7
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler/ccgtypes.nim b/compiler/ccgtypes.nim
index 66ddfaeb3..65e9af6c8 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