mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-03 11:03:14 +01:00
[svn r103] Array comparisons are now fully implemented, that is - to the extent that TypeInfo is.
This commit is contained in:
@@ -1810,6 +1810,11 @@ DValue* CmpExp::toElem(IRState* p)
|
||||
}
|
||||
eval = new llvm::FCmpInst(cmpop, l->getRVal(), r->getRVal(), "tmp", p->scopebb());
|
||||
}
|
||||
else if (t->ty == Tsarray || t->ty == Tarray)
|
||||
{
|
||||
Logger::println("static or dynamic array");
|
||||
eval = DtoArrayCompare(op,l,r);
|
||||
}
|
||||
else
|
||||
{
|
||||
assert(0 && "Unsupported CmpExp type");
|
||||
|
||||
Reference in New Issue
Block a user