mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 03:32:32 +00:00
fixes codegen regression
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user