diff options
author | Araq <rumpf_a@web.de> | 2016-11-14 23:18:30 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2016-11-14 23:18:30 +0100 |
commit | e6c5622aa74c1014b022071d9d525a0e13805246 (patch) | |
tree | fe50571aaf2f34ec7f36fb1068b5f3ffbd97250d /compiler/cgen.nim | |
parent | b234b082b60e57ec07a380599b6b7a311026d0ed (diff) | |
download | Nim-e6c5622aa74c1014b022071d9d525a0e13805246.tar.gz |
removed tyArrayConstr completely from the compiler; introduced tyAlias instead in preparation for further bugfixes
Diffstat (limited to 'compiler/cgen.nim')
-rw-r--r-- | compiler/cgen.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim index 522e41a12..89658279d 100644 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -62,7 +62,7 @@ proc fillLoc(a: var TLoc, k: TLocKind, typ: PType, r: Rope, s: TStorageLoc) = proc isSimpleConst(typ: PType): bool = let t = skipTypes(typ, abstractVar) result = t.kind notin - {tyTuple, tyObject, tyArray, tyArrayConstr, tySet, tySequence} and not + {tyTuple, tyObject, tyArray, tySet, tySequence} and not (t.kind == tyProc and t.callConv == ccClosure) proc useStringh(m: BModule) = @@ -264,7 +264,7 @@ proc genRefAssign(p: BProc, dest, src: TLoc, flags: TAssignmentFlags) proc isComplexValueType(t: PType): bool {.inline.} = let t = t.skipTypes(abstractInst) - result = t.kind in {tyArray, tyArrayConstr, tySet, tyTuple, tyObject} or + result = t.kind in {tyArray, tySet, tyTuple, tyObject} or (t.kind == tyProc and t.callConv == ccClosure) proc resetLoc(p: BProc, loc: var TLoc) = |