comparison gen/arrays.cpp @ 297:5de180867c46 trunk

[svn r318] Moved the call to DtoBoolean before the not instruction. Fixes array_initialization_17_A.
author ChristianK
date Mon, 23 Jun 2008 19:19:37 +0200
parents 0548a7720a1b
children 6b62e8cdf970
comparison
equal deleted inserted replaced
296:0548a7720a1b 297:5de180867c46
802 } 802 }
803 803
804 ////////////////////////////////////////////////////////////////////////////////////////// 804 //////////////////////////////////////////////////////////////////////////////////////////
805 LLValue* DtoArrayEquals(TOK op, DValue* l, DValue* r) 805 LLValue* DtoArrayEquals(TOK op, DValue* l, DValue* r)
806 { 806 {
807 LLValue* res = DtoArrayEqCmp_impl("_adEq", l, r, true); 807 LLValue* res = DtoBoolean(DtoArrayEqCmp_impl("_adEq", l, r, true));
808 if (op == TOKnotequal) 808 if (op == TOKnotequal)
809 res = gIR->ir->CreateNot(res, "tmp"); 809 res = gIR->ir->CreateNot(res, "tmp");
810 810
811 return DtoBoolean(res); 811 return res;
812 } 812 }
813 813
814 ////////////////////////////////////////////////////////////////////////////////////////// 814 //////////////////////////////////////////////////////////////////////////////////////////
815 LLValue* DtoArrayCompare(TOK op, DValue* l, DValue* r) 815 LLValue* DtoArrayCompare(TOK op, DValue* l, DValue* r)
816 { 816 {