mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-02 08:01:11 +03:00
Fix array comparison
This commit is contained in:
parent
058e2df074
commit
375dcb095c
3 changed files with 4 additions and 2 deletions
|
@ -1117,7 +1117,7 @@ LLValue* DtoArrayCompare(Loc& loc, TOK op, DValue* l, DValue* r)
|
|||
if (t->ty == Tchar)
|
||||
res = DtoArrayEqCmp_impl(loc, "_adCmpChar", l, r, false);
|
||||
else
|
||||
res = DtoArrayEqCmp_impl(loc, "_adCmp", l, r, true);
|
||||
res = DtoArrayEqCmp_impl(loc, _adCmp, l, r, true);
|
||||
res = gIR->ir->CreateICmp(cmpop, res, DtoConstInt(0), "tmp");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue