Skip to content

Commit

Permalink
surgical fix for #13319 (#13604)
Browse files Browse the repository at this point in the history
  • Loading branch information
disruptek authored Mar 8, 2020
1 parent eae31a7 commit a693ce7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions compiler/rodimpl.nim
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ proc loadType(g; id: int; info: TLineInfo): PType =
rawAddSon(result, nil)
else:
let d = decodeVInt(b.s, b.pos)
rawAddSon(result, loadType(g, d, info))
result.sons.add loadType(g, d, info)

proc decodeLib(g; b; info: TLineInfo): PLib =
result = nil
Expand Down Expand Up @@ -719,10 +719,8 @@ proc loadSymFromBlob(g; b; info: TLineInfo): PSym =
else:
internalError(g.config, info, "decodeSym: no ident")
#echo "decoding: {", ident.s
new(result)
result.id = id
result.kind = k
result.name = ident # read the rest of the symbol description:
result = PSym(id: id, kind: k, name: ident)
# read the rest of the symbol description:
g.incr.r.syms.add(result.id, result)
if b.s[b.pos] == '^':
inc(b.pos)
Expand Down

0 comments on commit a693ce7

Please sign in to comment.