diff --git a/src/BitcodeEmitter.cpp b/src/BitcodeEmitter.cpp index 1eb18c2..559a91f 100644 --- a/src/BitcodeEmitter.cpp +++ b/src/BitcodeEmitter.cpp @@ -497,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);