More factory methods moved to LLVMContext

This commit is contained in:
Benjamin Kramer
2009-07-15 18:09:41 +02:00
parent ac5bd294ca
commit d7049de966
17 changed files with 78 additions and 75 deletions

View File

@@ -515,7 +515,7 @@ DValue* DtoCastInt(Loc& loc, DValue* val, Type* _to)
}
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()) {