@@ -89,10 +89,10 @@ class Pointer {
89
89
PointeeStorage.Int .Desc = nullptr ;
90
90
}
91
91
Pointer (Block *B);
92
- Pointer (Block *B, unsigned BaseAndOffset);
92
+ Pointer (Block *B, uint64_t BaseAndOffset);
93
93
Pointer (const Pointer &P);
94
94
Pointer (Pointer &&P);
95
- Pointer (uint64_t Address, const Descriptor *Desc, unsigned Offset = 0 )
95
+ Pointer (uint64_t Address, const Descriptor *Desc, uint64_t Offset = 0 )
96
96
: Offset(Offset), StorageKind(Storage::Int) {
97
97
PointeeStorage.Int .Value = Address;
98
98
PointeeStorage.Int .Desc = Desc;
@@ -134,14 +134,14 @@ class Pointer {
134
134
std::optional<APValue> toRValue (const Context &Ctx) const ;
135
135
136
136
// / Offsets a pointer inside an array.
137
- [[nodiscard]] Pointer atIndex (unsigned Idx) const {
137
+ [[nodiscard]] Pointer atIndex (uint64_t Idx) const {
138
138
if (isIntegralPointer ())
139
139
return Pointer (asIntPointer ().Value , asIntPointer ().Desc , Idx);
140
140
141
141
if (asBlockPointer ().Base == RootPtrMark)
142
142
return Pointer (asBlockPointer ().Pointee , RootPtrMark,
143
143
getDeclDesc ()->getSize ());
144
- unsigned Off = Idx * elemSize ();
144
+ uint64_t Off = Idx * elemSize ();
145
145
if (getFieldDesc ()->ElemDesc )
146
146
Off += sizeof (InlineDescriptor);
147
147
else
@@ -630,7 +630,7 @@ class Pointer {
630
630
friend class DeadBlock ;
631
631
friend struct InitMap ;
632
632
633
- Pointer (Block *Pointee, unsigned Base, unsigned Offset);
633
+ Pointer (Block *Pointee, unsigned Base, uint64_t Offset);
634
634
635
635
// / Returns the embedded descriptor preceding a field.
636
636
InlineDescriptor *getInlineDesc () const {
@@ -656,7 +656,7 @@ class Pointer {
656
656
}
657
657
658
658
// / Offset into the storage.
659
- unsigned Offset = 0 ;
659
+ uint64_t Offset = 0 ;
660
660
661
661
// / Previous link in the pointer chain.
662
662
Pointer *Prev = nullptr ;
0 commit comments