IC: rodfiles: no floats (#17720)

This commit is contained in:
Andreas Rumpf 2021-04-14 22:35:18 +02:00 • committed by GitHub
commit eff9d75379
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 21 deletions

View file

@ -79,12 +79,10 @@ proc checkNode(c: var CheckedContext; tree: PackedTree; n: NodePos) =
checkLocalSym(c, tree.nodes[n.int].operand)
of directIntLit:
discard
of externIntLit:
assert c.g.packed[c.thisModule].fromDisk.sh.integers.hasLitId n.litId
of externIntLit, nkFloatLit..nkFloat128Lit:
assert c.g.packed[c.thisModule].fromDisk.sh.numbers.hasLitId n.litId
of nkStrLit..nkTripleStrLit:
assert c.g.packed[c.thisModule].fromDisk.sh.strings.hasLitId n.litId
of nkFloatLit..nkFloat128Lit:
assert c.g.packed[c.thisModule].fromDisk.sh.floats.hasLitId n.litId
of nkModuleRef:
let (n1, n2) = sons2(tree, n)
assert n1.kind == nkInt32Lit