summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-01-28 01:32:06 +0800
committerLi Jin <dragon-fly@qq.com>2020-01-28 01:32:06 +0800
commit3c5b154a9bea4a42db5ad3dd14a77382b839f3fc (patch)
tree470d37df014868971740439e9069b29b399e43e9
parent9d74b1c7c76992634ef6649fa3de15e4e47ab1fe (diff)
downloadyuescript-3c5b154a9bea4a42db5ad3dd14a77382b839f3fc.tar.gz
yuescript-3c5b154a9bea4a42db5ad3dd14a77382b839f3fc.tar.bz2
yuescript-3c5b154a9bea4a42db5ad3dd14a77382b839f3fc.zip
fix again.
-rw-r--r--makefile2
-rw-r--r--src/MoonP/moon_compiler.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/makefile b/makefile
index d290ad9..a3379a4 100644
--- a/makefile
+++ b/makefile
@@ -2,7 +2,7 @@
2# The name of the executable to be created 2# The name of the executable to be created
3BIN_NAME := moonc 3BIN_NAME := moonc
4# Compiler used 4# Compiler used
5CXX ?= clang 5CXX ?= g++
6# Extension of source files used in the project 6# Extension of source files used in the project
7SRC_EXT = cpp 7SRC_EXT = cpp
8# Path to the source directory, relative to the makefile 8# Path to the source directory, relative to the makefile
diff --git a/src/MoonP/moon_compiler.cpp b/src/MoonP/moon_compiler.cpp
index 6173389..f18fb16 100644
--- a/src/MoonP/moon_compiler.cpp
+++ b/src/MoonP/moon_compiler.cpp
@@ -1944,6 +1944,8 @@ private:
1944 transformStatement(static_cast<Statement_t*>(node), temp); 1944 transformStatement(static_cast<Statement_t*>(node), temp);
1945 } 1945 }
1946 out.push_back(join(temp)); 1946 out.push_back(join(temp));
1947 } else {
1948 out.push_back(Empty);
1947 } 1949 }
1948 } 1950 }
1949 1951