From: Jean Privat Date: Fri, 17 Oct 2014 02:56:17 +0000 (-0400) Subject: abstract_compiler: default stmt implmentation do not need to execute variables as... X-Git-Tag: v0.6.10~23^2~1 X-Git-Url: http://nitlanguage.org abstract_compiler: default stmt implmentation do not need to execute variables as statments Signed-off-by: Jean Privat --- diff --git a/src/compiler/abstract_compiler.nit b/src/compiler/abstract_compiler.nit index f111e0d..6175356 100644 --- a/src/compiler/abstract_compiler.nit +++ b/src/compiler/abstract_compiler.nit @@ -2397,8 +2397,7 @@ redef class AExpr # Do not call this method directly, use `v.stmt` instead private fun stmt(v: AbstractCompilerVisitor) do - var res = expr(v) - if res != null then v.add("{res};") + expr(v) end end