From 35263a7847f36e446fd9ca18ce1321acc14fed15 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Mon, 23 Jun 2008 19:19:37 +0200 Subject: [PATCH] [svn r318] Moved the call to DtoBoolean before the not instruction. Fixes array_initialization_17_A. --- gen/arrays.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gen/arrays.cpp b/gen/arrays.cpp index 6d6fdc60..8e76aa30 100644 --- a/gen/arrays.cpp +++ b/gen/arrays.cpp @@ -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; } //////////////////////////////////////////////////////////////////////////////////////////