summary refs log tree commit diff stats
path: root/compiler/ccgexprs.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-11-26 10:41:26 +0100
committerAndreas Rumpf <rumpf_a@web.de>2018-11-26 10:41:26 +0100
commiteb919c35b29afee8fb26a2145d88f4db9e6c332b (patch)
treecc2e4773eb0520a5c41b369c679c4a9d52a16abd /compiler/ccgexprs.nim
parent6206ba8f30e09492b2f7be5732dd2d53a26cc253 (diff)
downloadNim-eb919c35b29afee8fb26a2145d88f4db9e6c332b.tar.gz
fixes #9675
Diffstat (limited to 'compiler/ccgexprs.nim')
-rw-r--r--compiler/ccgexprs.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim
index 40a5d674c..fe3d676d8 100644
--- a/compiler/ccgexprs.nim
+++ b/compiler/ccgexprs.nim
@@ -2034,6 +2034,7 @@ proc genMagicExpr(p: BProc, e: PNode, d: var TLoc, op: TMagic) =
   of mDotDot, mEqCString: genCall(p, e, d)
   of mWasMoved: genWasMoved(p, e)
   of mMove: genMove(p, e, d)
+  of mDestroy: discard "ignore calls to the default destructor"
   of mSlice:
     localError(p.config, e.info, "invalid context for 'toOpenArray'; " &
       " 'toOpenArray' is only valid within a call expression")