diff options
Diffstat (limited to 'llvm.cpp')
-rw-r--r-- | llvm.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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()); |