Mercurial > projects > ldc
diff gen/toir.cpp @ 611:83ca663ecc20
Backed out changeset 1b62222581fb
Do not use i8 for bool. Instead rely on the target to store i1 as i8.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 21 Sep 2008 14:45:41 +0200 |
parents | 1b62222581fb |
children | 5ced42a55aa9 |
line wrap: on
line diff
--- a/gen/toir.cpp Sat Sep 20 10:13:15 2008 +0200 +++ b/gen/toir.cpp Sun Sep 21 14:45:41 2008 +0200 @@ -1649,7 +1649,7 @@ LLValue* b = DtoBoolean(loc, u); - LLConstant* zero = llvm::ConstantInt::get(b->getType(), 0); + LLConstant* zero = DtoConstBool(false); b = p->ir->CreateICmpEQ(b,zero); return new DImValue(type, b);