Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
410:b4c2056038bf | 411:3545f9eddbfc |
---|---|
387 Type *semantic(Loc loc, Scope *sc); | 387 Type *semantic(Loc loc, Scope *sc); |
388 d_uns64 size(Loc loc); | 388 d_uns64 size(Loc loc); |
389 void toCBuffer2(OutBuffer *buf, HdrGenState *hgs, int mod); | 389 void toCBuffer2(OutBuffer *buf, HdrGenState *hgs, int mod); |
390 MATCH implicitConvTo(Type *to); | 390 MATCH implicitConvTo(Type *to); |
391 int isscalar(); | 391 int isscalar(); |
392 // LLVMDC: pointers are unsigned | |
393 int isunsigned() { return TRUE; }; | |
392 Expression *defaultInit(Loc loc); | 394 Expression *defaultInit(Loc loc); |
393 int isZeroInit(); | 395 int isZeroInit(); |
394 TypeInfoDeclaration *getTypeInfoDeclaration(); | 396 TypeInfoDeclaration *getTypeInfoDeclaration(); |
395 int hasPointers(); | 397 int hasPointers(); |
396 | 398 |