Mercurial > projects > ldc
comparison gen/arrays.cpp @ 296:0548a7720a1b trunk
[svn r317] Convert result of _adEq runtime function to bool to make sure EqualExp returns i1 bool.
author | ChristianK |
---|---|
date | Mon, 23 Jun 2008 19:08:32 +0200 |
parents | 895e1b50cf2a |
children | 5de180867c46 |
comparison
equal
deleted
inserted
replaced
295:895e1b50cf2a | 296:0548a7720a1b |
---|---|
806 { | 806 { |
807 LLValue* res = DtoArrayEqCmp_impl("_adEq", l, r, true); | 807 LLValue* res = DtoArrayEqCmp_impl("_adEq", l, r, true); |
808 if (op == TOKnotequal) | 808 if (op == TOKnotequal) |
809 res = gIR->ir->CreateNot(res, "tmp"); | 809 res = gIR->ir->CreateNot(res, "tmp"); |
810 | 810 |
811 return res; | 811 return DtoBoolean(res); |
812 } | 812 } |
813 | 813 |
814 ////////////////////////////////////////////////////////////////////////////////////////// | 814 ////////////////////////////////////////////////////////////////////////////////////////// |
815 LLValue* DtoArrayCompare(TOK op, DValue* l, DValue* r) | 815 LLValue* DtoArrayCompare(TOK op, DValue* l, DValue* r) |
816 { | 816 { |