comparison gen/complex.cpp @ 778:4adf0f742896

Get rid of DtoBoolean - use DtoCast(... Type::tbool) instead. Fixed some casts to bool that were using truncation.
author Christian Kamm <kamm incasoftware de>
date Sat, 22 Nov 2008 18:35:52 +0100
parents 4ac97ec7c18e
children 3cf0066e6faf
comparison
equal deleted inserted replaced
777:961e249eb2aa 778:4adf0f742896
452 LLValue* v = val->getRVal(); 452 LLValue* v = val->getRVal();
453 LLValue* repart = gIR->ir->CreateExtractValue(v, 0, ".re_part"); 453 LLValue* repart = gIR->ir->CreateExtractValue(v, 0, ".re_part");
454 DImValue* re = new DImValue(to, repart); 454 DImValue* re = new DImValue(to, repart);
455 return DtoCastFloat(loc, re, to); 455 return DtoCastFloat(loc, re, to);
456 } 456 }
457 else if (to->ty == Tbool) {
458 return new DImValue(_to, DtoComplexEquals(loc, TOKnotequal, val, DtoNullValue(vty)));
459 }
457 else 460 else
458 assert(0); 461 assert(0);
459 } 462 }
460 463