Mercurial > projects > ldc
comparison gen/toir.cpp @ 610:1b62222581fb
Change bool type to i8
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 20 Sep 2008 10:13:15 +0200 |
parents | e235b80c92bc |
children | 83ca663ecc20 |
comparison
equal
deleted
inserted
replaced
609:2cf4359d344f | 610:1b62222581fb |
---|---|
1647 | 1647 |
1648 DValue* u = e1->toElem(p); | 1648 DValue* u = e1->toElem(p); |
1649 | 1649 |
1650 LLValue* b = DtoBoolean(loc, u); | 1650 LLValue* b = DtoBoolean(loc, u); |
1651 | 1651 |
1652 LLConstant* zero = DtoConstBool(false); | 1652 LLConstant* zero = llvm::ConstantInt::get(b->getType(), 0); |
1653 b = p->ir->CreateICmpEQ(b,zero); | 1653 b = p->ir->CreateICmpEQ(b,zero); |
1654 | 1654 |
1655 return new DImValue(type, b); | 1655 return new DImValue(type, b); |
1656 } | 1656 } |
1657 | 1657 |