diff options
author | Miran <narimiran@users.noreply.github.com> | 2018-10-18 12:29:32 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-10-18 12:29:32 +0200 |
commit | 675c629feea96da67267c2ca3c2ecdf528f48537 (patch) | |
tree | ee4291353bfb1918c63e363a64046b8116b06627 /compiler/rodimpl.nim | |
parent | 7d8e281239de4d8d4ba2a32671812726a8c20263 (diff) | |
download | Nim-675c629feea96da67267c2ca3c2ecdf528f48537.tar.gz |
replace deprecated `safeAdd` with `add` (#9416)
Diffstat (limited to 'compiler/rodimpl.nim')
-rw-r--r-- | compiler/rodimpl.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rodimpl.nim b/compiler/rodimpl.nim index 420c5bf7f..eab305d5c 100644 --- a/compiler/rodimpl.nim +++ b/compiler/rodimpl.nim @@ -616,7 +616,7 @@ proc loadType(g; id: int; info: TLineInfo): PType = doAssert b.s[b.pos] == '\20' inc(b.pos) let y = loadSym(g, decodeVInt(b.s, b.pos), info) - result.methods.safeAdd((x, y)) + result.methods.add((x, y)) decodeLoc(g, b, result.loc, info) while b.s[b.pos] == '^': inc(b.pos) @@ -656,7 +656,7 @@ proc decodeInstantiations(g; b; info: TLineInfo; if b.s[b.pos] == '\20': inc(b.pos) ii.compilesId = decodeVInt(b.s, b.pos) - s.safeAdd ii + s.add ii proc loadSymFromBlob(g; b; info: TLineInfo): PSym = if b.s[b.pos] == '{': @@ -717,7 +717,7 @@ proc loadSymFromBlob(g; b; info: TLineInfo): PSym = of skType, skGenericParam: while b.s[b.pos] == '\14': inc(b.pos) - result.typeInstCache.safeAdd loadType(g, decodeVInt(b.s, b.pos), result.info) + result.typeInstCache.add loadType(g, decodeVInt(b.s, b.pos), result.info) of routineKinds: decodeInstantiations(g, b, result.info, result.procInstCache) if b.s[b.pos] == '\16': |