Mercurial > projects > ldc
changeset 1511:5b66008246bb
Implement equality comparison for associative arrays. The semantics aren't in
the spec, but DMD does a simple pointer comparison. Complaints about this go to
http://d.puremagic.com/issues/show_bug.cgi?id=1429 :P.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Sun, 21 Jun 2009 00:12:29 +0200 |
parents | b6b6afc2dfc7 |
children | 09734fb929c0 |
files | gen/toir.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gen/toir.cpp Sat Jun 20 19:44:54 2009 +0200 +++ b/gen/toir.cpp Sun Jun 21 00:12:29 2009 +0200 @@ -1448,7 +1448,7 @@ // the Tclass catches interface comparisons, regular // class equality should be rewritten as a.opEquals(b) by this time - if (t->isintegral() || t->ty == Tpointer || t->ty == Tclass) + if (t->isintegral() || t->ty == Tpointer || t->ty == Tclass || t->ty == Taarray) { Logger::println("integral or pointer or interface"); llvm::ICmpInst::Predicate cmpop;