* fixes #6016 union alias trigger bad codegen * cpp test ok * merging some test into one file
This commit is contained in:
parent
f063943d5f
commit
57edf619fe
6 changed files with 176 additions and 141 deletions
|
|
@ -336,6 +336,7 @@ proc getTypePre(m: BModule, typ: PType; sig: SigHash): Rope =
|
|||
if result == nil: result = cacheGetType(m.typeCache, sig)
|
||||
|
||||
proc structOrUnion(t: PType): Rope =
|
||||
let t = t.skipTypes({tyAlias})
|
||||
(if tfUnion in t.flags: rope("union") else: rope("struct"))
|
||||
|
||||
proc getForwardStructFormat(m: BModule): string =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue