mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 01:23:14 +01:00
Change bool type to i8
This commit is contained in:
@@ -1649,7 +1649,7 @@ DValue* NotExp::toElem(IRState* p)
|
||||
|
||||
LLValue* b = DtoBoolean(loc, u);
|
||||
|
||||
LLConstant* zero = DtoConstBool(false);
|
||||
LLConstant* zero = llvm::ConstantInt::get(b->getType(), 0);
|
||||
b = p->ir->CreateICmpEQ(b,zero);
|
||||
|
||||
return new DImValue(type, b);
|
||||
|
||||
Reference in New Issue
Block a user