mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-25 16:45:21 +02:00
More factory methods moved to LLVMContext
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user