diff --git a/.gitignore b/.gitignore index 3aa7803..098b43f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /*.user /mcc /build +/nbproject diff --git a/src/BitcodeEmitter.cpp b/src/BitcodeEmitter.cpp index 60c55bb..559a91f 100644 --- a/src/BitcodeEmitter.cpp +++ b/src/BitcodeEmitter.cpp @@ -32,6 +32,7 @@ #include #include +#include #include #include #include @@ -496,6 +497,8 @@ bool BitcodeEmitter::emit(Branch const& node) { if (body.getElse()) { GUARDED(ensureBasicBlock(*body.getElse(), mergebb)); + } else { + d->builder.CreateBr(mergebb); } func->getBasicBlockList().push_back(mergebb);