Merge branch 'master' into location

This commit is contained in:
Stefano Sanfilippo 2015-03-25 01:36:26 +01:00
commit 5c05d96b39
2 changed files with 4 additions and 0 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
/*.user
/mcc
/build
/nbproject

View File

@ -32,6 +32,7 @@
#include <llvm/Analysis/Passes.h>
#include <cassert>
#include <iostream>
#include <string>
#include <map>
#include <vector>
@ -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);