Mercurial > projects > ldc
changeset 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 | 3b8ada4c9f8b |
files | gen/arrays.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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; } //////////////////////////////////////////////////////////////////////////////////////////