mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-14 03:43:13 +01:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user