From 3c5b154a9bea4a42db5ad3dd14a77382b839f3fc Mon Sep 17 00:00:00 2001 From: Li Jin Date: Tue, 28 Jan 2020 01:32:06 +0800 Subject: fix again. --- makefile | 2 +- src/MoonP/moon_compiler.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index d290ad9..a3379a4 100644 --- a/makefile +++ b/makefile @@ -2,7 +2,7 @@ # The name of the executable to be created BIN_NAME := moonc # Compiler used -CXX ?= clang +CXX ?= g++ # Extension of source files used in the project SRC_EXT = cpp # 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: transformStatement(static_cast(node), temp); } out.push_back(join(temp)); + } else { + out.push_back(Empty); } } -- cgit v1.2.3-55-g6feb