diff options
author | Li Jin <dragon-fly@qq.com> | 2020-01-28 01:32:06 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2020-01-28 01:32:06 +0800 |
commit | 3c5b154a9bea4a42db5ad3dd14a77382b839f3fc (patch) | |
tree | 470d37df014868971740439e9069b29b399e43e9 | |
parent | 9d74b1c7c76992634ef6649fa3de15e4e47ab1fe (diff) | |
download | yuescript-3c5b154a9bea4a42db5ad3dd14a77382b839f3fc.tar.gz yuescript-3c5b154a9bea4a42db5ad3dd14a77382b839f3fc.tar.bz2 yuescript-3c5b154a9bea4a42db5ad3dd14a77382b839f3fc.zip |
fix again.
-rw-r--r-- | makefile | 2 | ||||
-rw-r--r-- | src/MoonP/moon_compiler.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -2,7 +2,7 @@ | |||
2 | # The name of the executable to be created | 2 | # The name of the executable to be created |
3 | BIN_NAME := moonc | 3 | BIN_NAME := moonc |
4 | # Compiler used | 4 | # Compiler used |
5 | CXX ?= clang | 5 | CXX ?= g++ |
6 | # Extension of source files used in the project | 6 | # Extension of source files used in the project |
7 | SRC_EXT = cpp | 7 | SRC_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 | ||