Mercurial > projects > ldc
diff gen/llvmhelpers.cpp @ 1545:7fcb72d518f6
More factory methods moved to LLVMContext
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Wed, 15 Jul 2009 18:09:41 +0200 |
parents | 61f12f4651b5 |
children | c704fea92f80 |
line wrap: on
line diff
--- a/gen/llvmhelpers.cpp Fri Jul 17 19:23:20 2009 +0200 +++ b/gen/llvmhelpers.cpp Wed Jul 15 18:09:41 2009 +0200 @@ -515,7 +515,7 @@ } if (to->ty == Tbool) { - LLValue* zero = LLConstantInt::get(rval->getType(), 0, false); + LLValue* zero = gIR->context().getConstantInt(rval->getType(), 0, false); rval = gIR->ir->CreateICmpNE(rval, zero, "tmp"); } else if (to->isintegral()) {