[svn r366] Fixed identity exprs for structs was comparing addresses, not content!

This commit is contained in:
Tomas Lindquist Olsen
2008-07-13 04:27:02 +02:00
parent a4e4f34a34
commit c4982165ba
3 changed files with 59 additions and 1 deletions

View File

@@ -389,7 +389,7 @@ LLValue* DtoStructEquals(TOK op, DValue* lhs, DValue* rhs)
// set predicate
llvm::ICmpInst::Predicate cmpop;
if (op == TOKequal)
if (op == TOKequal || op == TOKidentity)
cmpop = llvm::ICmpInst::ICMP_EQ;
else
cmpop = llvm::ICmpInst::ICMP_NE;