[svn r103] Array comparisons are now fully implemented, that is - to the extent that TypeInfo is.

This commit is contained in:
Tomas Lindquist Olsen
2007-11-15 00:24:44 +01:00
parent 302015d7e8
commit 7d6bbcd87d
6 changed files with 103 additions and 9 deletions

View File

@@ -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");