# HG changeset patch # User ChristianK # Date 1214241577 -7200 # Node ID 5de180867c46dc31e918d09dbb4431cb07d4b584 # Parent 0548a7720a1be7067e659b71521eb8c64ef109ee [svn r318] Moved the call to DtoBoolean before the not instruction. Fixes array_initialization_17_A. diff -r 0548a7720a1b -r 5de180867c46 gen/arrays.cpp --- a/gen/arrays.cpp Mon Jun 23 19:08:32 2008 +0200 +++ b/gen/arrays.cpp Mon Jun 23 19:19:37 2008 +0200 @@ -804,11 +804,11 @@ ////////////////////////////////////////////////////////////////////////////////////////// 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; } //////////////////////////////////////////////////////////////////////////////////////////