Ensure that a proper bb is created when "else" is omitted in a branch.

This commit is contained in:
Stefano Sanfilippo 2015-03-25 01:28:06 +01:00
parent d7fe87ee6e
commit 3dc5dc604a

View File

@ -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);