From 956f3b7c2aa202c1adf74a8f981a336a9186c754 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Mon, 23 Jun 2008 19:08:32 +0200 Subject: [PATCH] [svn r317] Convert result of _adEq runtime function to bool to make sure EqualExp returns i1 bool. --- gen/arrays.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/arrays.cpp b/gen/arrays.cpp index bfd23b50..6d6fdc60 100644 --- a/gen/arrays.cpp +++ b/gen/arrays.cpp @@ -808,7 +808,7 @@ LLValue* DtoArrayEquals(TOK op, DValue* l, DValue* r) if (op == TOKnotequal) res = gIR->ir->CreateNot(res, "tmp"); - return res; + return DtoBoolean(res); } //////////////////////////////////////////////////////////////////////////////////////////