replace deprecated safeAdd with add (#9416)

This commit is contained in:
Miran 2018-10-18 12:29:32 +02:00 • committed by Andreas Rumpf
commit 675c629fee
7 changed files with 12 additions and 12 deletions

View file

@ -69,7 +69,7 @@ proc cacheTypeInst*(inst: PType) =
let t = if gt.kind == tyGenericBody: gt.lastSon else: gt
if t.kind in {tyStatic, tyGenericParam} + tyTypeClasses:
return
gt.sym.typeInstCache.safeAdd(inst)
gt.sym.typeInstCache.add(inst)
type