mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-05-06 02:11:30 +02: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