diff options
-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 | ||