aboutsummaryrefslogtreecommitdiffstats
path: root/llvm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm.cpp')
-rw-r--r--llvm.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm.cpp b/llvm.cpp
index bd7ae7c..e08d4fb 100644
--- a/llvm.cpp
+++ b/llvm.cpp
@@ -310,10 +310,10 @@ CValue
AIf::compile(CEnv& cenv)
{
typedef vector< pair<Value*, BasicBlock*> > Branches;
- Function* parent = cenv.engine.builder.GetInsertBlock()->getParent();
- BasicBlock* mergeBB = BasicBlock::Create("endif");
- BasicBlock* nextBB = NULL;
- Branches branches;
+ Function* parent = cenv.engine.builder.GetInsertBlock()->getParent();
+ BasicBlock* mergeBB = BasicBlock::Create("endif");
+ BasicBlock* nextBB = NULL;
+ Branches branches;
for (size_t i = 1; i < size() - 1; i += 2) {
Value* condV = LLVal(cenv.compile(at(i)));
BasicBlock* thenBB = BasicBlock::Create((format("then%1%") % ((i+1)/2)).str());