changeset 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 b4c2056038bf
children 798ee94a0be7
files dmd/mtype.h
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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();