From 2592d1caa6f7b25991ffc55324325ff39e643ff8 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Sun, 27 Jul 2008 17:10:47 +0200 Subject: [PATCH] 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. --- dmd/mtype.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dmd/mtype.h b/dmd/mtype.h index cf7b8d8e..d87e3880 100644 --- a/dmd/mtype.h +++ b/dmd/mtype.h @@ -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();