Change bool type to i8

This commit is contained in:
Christian Kamm
2008-09-20 10:13:15 +02:00
parent a81a6367b4
commit 4b02533745
7 changed files with 29 additions and 26 deletions

View File

@@ -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);