diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-10-14 22:26:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-14 22:26:21 +0200 |
commit | 644eb4dd5439b574f03b0d65db6d2b31b246a4be (patch) | |
tree | 68474a93ac7aa58517eb24ce4fec12522e0ccfa0 /compiler | |
parent | c2ba4ef9799a097fec8b2bb1b033448860d60f1b (diff) | |
download | Nim-644eb4dd5439b574f03b0d65db6d2b31b246a4be.tar.gz |
ORC: critical bugfix for the cycle analyser, introduce -d:nimStressOrc for easier stress testing (#15572)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/liftdestructors.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/liftdestructors.nim b/compiler/liftdestructors.nim index dd5332b38..2735fb417 100644 --- a/compiler/liftdestructors.nim +++ b/compiler/liftdestructors.nim @@ -518,7 +518,7 @@ proc atomicRefOp(c: var TLiftCtx; t: PType; body, x, y: PNode) = addDestructorCall(c, elemType, newNodeI(nkStmtList, c.info), genDeref(x, nkDerefExpr)) actions.add callCodegenProc(c.g, "nimDestroyAndDispose", c.info, x) - let isCyclic = c.g.config.selectedGC == gcOrc and types.canFormAcycle(t) + let isCyclic = c.g.config.selectedGC == gcOrc and types.canFormAcycle(elemType) var cond: PNode if isCyclic: |