ORC: critical bugfix for mixing acyclic refs with cyclic refs [backport:1.4] (#17991)
This commit is contained in:
parent
45490497e3
commit
2c2ec48bc4
2 changed files with 12 additions and 8 deletions
|
|
@ -381,7 +381,8 @@ proc isFinal*(t: PType): bool =
|
|||
|
||||
proc canFormAcycle*(typ: PType): bool =
|
||||
var marker = initIntSet()
|
||||
result = canFormAcycleAux(marker, typ, typ.id)
|
||||
let t = skipTypes(typ, abstractInst+{tyOwned}-{tyTypeDesc})
|
||||
result = canFormAcycleAux(marker, t, t.id)
|
||||
|
||||
proc mutateTypeAux(marker: var IntSet, t: PType, iter: TTypeMutator,
|
||||
closure: RootRef): PType
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue