Mercurial > projects > ldc
diff gen/toir.cpp @ 99:a676a7743642 trunk
[svn r103] Array comparisons are now fully implemented, that is - to the extent that TypeInfo is.
author | lindquist |
---|---|
date | Thu, 15 Nov 2007 00:24:44 +0100 |
parents | 6789050b5ad1 |
children | 5071469303d4 |
line wrap: on
line diff
--- a/gen/toir.cpp Wed Nov 14 23:39:10 2007 +0100 +++ b/gen/toir.cpp Thu Nov 15 00:24:44 2007 +0100 @@ -1810,6 +1810,11 @@ } 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");