# HG changeset patch # User Christian Kamm # Date 1217171447 -7200 # Node ID 3545f9eddbfc55faca7a73928a0dad6a8a66a70b # Parent b4c2056038bfb5e7001ff1311392f3f57dd53557 Switch TypePointer::isunsigned from false to true, so CmpExp::toElem chooses the right operand for pointer comparisons. Fixes run/t/typeinfo_03_A,B,C,D. diff -r b4c2056038bf -r 3545f9eddbfc dmd/mtype.h --- a/dmd/mtype.h Sun Jul 27 16:27:44 2008 +0200 +++ b/dmd/mtype.h Sun Jul 27 17:10:47 2008 +0200 @@ -389,6 +389,8 @@ void toCBuffer2(OutBuffer *buf, HdrGenState *hgs, int mod); MATCH implicitConvTo(Type *to); int isscalar(); + // LLVMDC: pointers are unsigned + int isunsigned() { return TRUE; }; Expression *defaultInit(Loc loc); int isZeroInit(); TypeInfoDeclaration *getTypeInfoDeclaration();