add condition for szUnknown (#10869)
This commit is contained in:
parent
3794338aba
commit
48d5e4f95c
1 changed files with 2 additions and 2 deletions
|
|
@ -246,8 +246,8 @@ proc cacheGetType(tab: TypeCache; sig: SigHash): Rope =
|
||||||
result = tab.getOrDefault(sig)
|
result = tab.getOrDefault(sig)
|
||||||
|
|
||||||
proc addAbiCheck(m: BModule, t: PType, name: Rope) =
|
proc addAbiCheck(m: BModule, t: PType, name: Rope) =
|
||||||
if isDefined(m.config, "checkabi"):
|
if isDefined(m.config, "checkabi") and (let size = getSize(m.config, t); size != szUnknownSize):
|
||||||
addf(m.s[cfsTypeInfo], "NIM_CHECK_SIZE($1, $2);$n", [name, rope(getSize(m.config, t))])
|
addf(m.s[cfsTypeInfo], "NIM_CHECK_SIZE($1, $2);$n", [name, rope(size)])
|
||||||
|
|
||||||
proc ccgIntroducedPtr(conf: ConfigRef; s: PSym): bool =
|
proc ccgIntroducedPtr(conf: ConfigRef; s: PSym): bool =
|
||||||
var pt = skipTypes(s.typ, typedescInst)
|
var pt = skipTypes(s.typ, typedescInst)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue