mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-01 01:53:16 +01:00
LLVMContext changes up to r77366
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user