Mercurial > projects > ldc
diff dmd/mtype.h @ 411:3545f9eddbfc
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.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 27 Jul 2008 17:10:47 +0200 |
parents | d632801b15f0 |
children | cc40db549aea |
line wrap: on
line diff
--- 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();