LLVMContext changes up to r77366

This commit is contained in:
Benjamin Kramer
2009-07-30 15:25:10 +02:00
parent 3f0a0686a8
commit 66101517d7
19 changed files with 113 additions and 114 deletions

View File

@@ -514,7 +514,7 @@ DValue* DtoCastInt(Loc& loc, DValue* val, Type* _to)
}
if (to->ty == Tbool) {
LLValue* zero = gIR->context().getConstantInt(rval->getType(), 0, false);
LLValue* zero = LLConstantInt::get(rval->getType(), 0, false);
rval = gIR->ir->CreateICmpNE(rval, zero, "tmp");
}
else if (to->isintegral()) {