[svn r318] Moved the call to DtoBoolean before the not instruction.

Fixes array_initialization_17_A.
This commit is contained in:
Christian Kamm
2008-06-23 19:19:37 +02:00
parent 956f3b7c2a
commit 35263a7847

View File

@@ -804,11 +804,11 @@ static LLValue* DtoArrayEqCmp_impl(const char* func, DValue* l, DValue* r, bool
//////////////////////////////////////////////////////////////////////////////////////////
LLValue* DtoArrayEquals(TOK op, DValue* l, DValue* r)
{
LLValue* res = DtoArrayEqCmp_impl("_adEq", l, r, true);
LLValue* res = DtoBoolean(DtoArrayEqCmp_impl("_adEq", l, r, true));
if (op == TOKnotequal)
res = gIR->ir->CreateNot(res, "tmp");
return DtoBoolean(res);
return res;
}
//////////////////////////////////////////////////////////////////////////////////////////