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.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/destroyer.nim b/compiler/destroyer.nim
index afa2e5e50..f97c44861 100644
--- a/compiler/destroyer.nim
+++ b/compiler/destroyer.nim
@@ -95,8 +95,6 @@ import
   intsets, ast, astalgo, msgs, renderer, magicsys, types, idents, trees,
   strutils, options, dfa, lowerings
 
-template hasDestructor(t: PType): bool = tfHasAsgn in t.flags
-
 const
   InterestingSyms = {skVar, skResult, skLet}
 
@@ -253,6 +251,7 @@ proc p(n: PNode; c: var Con): PNode =
       result = copyNode(n)
       recurse(n, result)
   of nkAsgn, nkFastAsgn:
+    # XXX if special, call special operator
     if n[0].kind == nkSym and interestingSym(n[0].sym):
       result = moveOrCopy(n[0], n[1], c)
     else: