aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-03-10 19:56:36 +0000
committerDavid Robillard <d@drobilla.net>2009-03-10 19:56:36 +0000
commit98625eefd3df3c903f758ff2aaf9f6b9d314723f (patch)
tree14b7a3ba74355bc68704ebfafd20ea21f270a22b
parent16fbc29a3605f9460a986f932e619a935b95c5e5 (diff)
downloadresp-98625eefd3df3c903f758ff2aaf9f6b9d314723f.tar.gz
resp-98625eefd3df3c903f758ff2aaf9f6b9d314723f.tar.bz2
resp-98625eefd3df3c903f758ff2aaf9f6b9d314723f.zip
More super important world changing kind of stuff.
git-svn-id: http://svn.drobilla.net/resp/tuplr@81 ad02d1e2-f140-0410-9f75-f8b11f17cedd
-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());