comparison gen/arrays.cpp @ 364:8014dbd24605 trunk

[svn r385] Fix lvalue cast problems with -= and friends. Fix complex DtoBoolean.
author ChristianK
date Mon, 14 Jul 2008 22:48:03 +0200
parents 9c9544fd769d
children bfb9d28f045a
comparison
equal deleted inserted replaced
363:4d7495038ae8 364:8014dbd24605
755 } 755 }
756 756
757 ////////////////////////////////////////////////////////////////////////////////////////// 757 //////////////////////////////////////////////////////////////////////////////////////////
758 LLValue* DtoArrayEquals(TOK op, DValue* l, DValue* r) 758 LLValue* DtoArrayEquals(TOK op, DValue* l, DValue* r)
759 { 759 {
760 LLValue* res = DtoBoolean(DtoArrayEqCmp_impl("_adEq", l, r, true)); 760 LLValue* res = DtoArrayEqCmp_impl("_adEq", l, r, true);
761 res = new llvm::ICmpInst(llvm::ICmpInst::ICMP_NE, res, DtoConstInt(0), "tmp", gIR->scopebb());
761 if (op == TOKnotequal) 762 if (op == TOKnotequal)
762 res = gIR->ir->CreateNot(res, "tmp"); 763 res = gIR->ir->CreateNot(res, "tmp");
763 764
764 return res; 765 return res;
765 } 766 }