summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorEXetoC <exetoc@gmail.com>2014-04-20 23:03:31 +0200
committerEXetoC <exetoc@gmail.com>2014-04-20 23:03:31 +0200
commit171f4a21e8b2180cfeb4dcdb0ebde95f73b3dec3 (patch)
tree6a1be98235e5759050625ffaeb3928f93cd31b8e
parentbe6474af638b72aabeb70cfc5f477cc5fb7af0ce (diff)
downloadNim-171f4a21e8b2180cfeb4dcdb0ebde95f73b3dec3.tar.gz
Fix spawn ICE on invalid argument.
-rw-r--r--compiler/semfold.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semfold.nim b/compiler/semfold.nim
index caaab2291..79abfaf4d 100644
--- a/compiler/semfold.nim
+++ b/compiler/semfold.nim
@@ -404,7 +404,7 @@ proc evalOp(m: TMagic, n, a, b, c: PNode): PNode =
      mExit, mInc, ast.mDec, mEcho, mSwap, mAppendStrCh, 
      mAppendStrStr, mAppendSeqElem, mSetLengthStr, mSetLengthSeq, 
      mParseExprToAst, mParseStmtToAst, mExpandToAst, mTypeTrait,
-     mNLen..mNError, mEqRef, mSlurp, mStaticExec, mNGenSym: 
+     mNLen..mNError, mEqRef, mSlurp, mStaticExec, mNGenSym, mSpawn:
     discard
   of mRand:
     result = newIntNodeT(math.random(a.getInt.int), n)