Fix omitted argument

This commit is contained in:
otya128 committed 2016-12-24 13:24:36 +09:00
1 parent 757bf6cc48
commit 4abf299063
3 files changed
+13 -8

No files matched your search

+1 -1
View File
@@ -486,7 +486,7 @@ class Compiler
}
void compileExpression(Expression exp, Scope sc)
{
if(!exp)
if(!exp || exp.type == NodeType.VoidExpression)
{
genCodeImm(Value(ValueType.Void));
return;