diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-06-02 20:40:55 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-06-02 20:41:08 +0200 |
commit | 09ac351a6fe7cf7197bcea458cddc7dfc17dd533 (patch) | |
tree | 1f912292a416edf7f4cc667b639b081251acfb2d /compiler | |
parent | 9df1704aa159139e99c2a887d6a3b7cf0cbf75ae (diff) | |
download | Nim-09ac351a6fe7cf7197bcea458cddc7dfc17dd533.tar.gz |
fixes codegen regression
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/ccgtypes.nim | 7 |
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 |