Merge branch 'master' into location
This commit is contained in:
commit
5c05d96b39
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@
|
||||||
/*.user
|
/*.user
|
||||||
/mcc
|
/mcc
|
||||||
/build
|
/build
|
||||||
|
/nbproject
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
#include <llvm/Analysis/Passes.h>
|
#include <llvm/Analysis/Passes.h>
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
#include <iostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
@ -496,6 +497,8 @@ bool BitcodeEmitter::emit(Branch const& node) {
|
||||||
|
|
||||||
if (body.getElse()) {
|
if (body.getElse()) {
|
||||||
GUARDED(ensureBasicBlock(*body.getElse(), mergebb));
|
GUARDED(ensureBasicBlock(*body.getElse(), mergebb));
|
||||||
|
} else {
|
||||||
|
d->builder.CreateBr(mergebb);
|
||||||
}
|
}
|
||||||
|
|
||||||
func->getBasicBlockList().push_back(mergebb);
|
func->getBasicBlockList().push_back(mergebb);
|
||||||
|
|
Reference in New Issue
Block a user