summary refs log tree commit diff stats
path: root/compiler/semstmts.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-10-15 08:06:54 +0200
committerAraq <rumpf_a@web.de>2013-10-15 08:06:54 +0200
commit6a9baf3fd7842027a30ee4856d40841610dccc13 (patch)
tree66489b9bbf27673beabc0b2219bf0036b315b289 /compiler/semstmts.nim
parent5659a1662e755baac1de555e33f2e8c13e30f2e2 (diff)
downloadNim-6a9baf3fd7842027a30ee4856d40841610dccc13.tar.gz
compiler bootstraps with new VM
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r--compiler/semstmts.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim
index ed6787a16..4fc69043b 100644
--- a/compiler/semstmts.nim
+++ b/compiler/semstmts.nim
@@ -1152,14 +1152,14 @@ proc setLine(n: PNode, info: TLineInfo) =
 proc semPragmaBlock(c: PContext, n: PNode): PNode =
   let pragmaList = n.sons[0]
   pragma(c, nil, pragmaList, exprPragmas)
-  result = semStmt(c, n.sons[1])
+  result = semExpr(c, n.sons[1])
   for i in 0 .. <pragmaList.len:
     if whichPragma(pragmaList.sons[i]) == wLine:
       setLine(result, pragmaList.sons[i].info)
 
 proc semStaticStmt(c: PContext, n: PNode): PNode =
   let a = semStmt(c, n.sons[0])
-  result = evalStaticExpr(c, c.module, a, c.p.owner)
+  result = evalStaticExpr(c.module, a, c.p.owner)
   if result.isNil:
     LocalError(n.info, errCannotInterpretNodeX, renderTree(n))
     result = emptyNode