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.
This commit is contained in:
Christian Kamm
2008-07-27 17:10:47 +02:00
parent 67d242272b
commit 2592d1caa6

View File

@@ -389,6 +389,8 @@ struct TypePointer : Type
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();