summary refs log tree commit diff stats
path: root/compiler/destroyer.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/destroyer.nim')
-rw-r--r--compiler/destroyer.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/destroyer.nim b/compiler/destroyer.nim
index 03ce9a5cf..ca2aa8558 100644
--- a/compiler/destroyer.nim
+++ b/compiler/destroyer.nim
@@ -184,7 +184,7 @@ proc isHarmlessVar*(s: PSym; c: Con): bool =
         inc usages
     #of useWithinCall:
     #  if c.g[i].sym == s: return false
-    of goto, fork:
+    of goto, fork, InstrKind.join:
       discard "we do not perform an abstract interpretation yet"
   result = usages <= 1
 
@@ -246,6 +246,8 @@ proc isLastRead(n: PNode; c: var Con): bool =
         if not takenForks.containsOrIncl(pc):
           pcs.add pc + c.g[pc].dest
         inc pc
+      of InstrKind.join:
+        inc pc
   #echo c.graph.config $ n.info, " last read here!"
   return true