@@ -53,7 +53,7 @@ class Block final {
53
53
bool IsStatic = false , bool IsExtern = false )
54
54
: DeclID(DeclID), IsStatic(IsStatic), IsExtern(IsExtern), Desc(Desc) {}
55
55
56
- Block (Descriptor *Desc, bool IsStatic = false , bool IsExtern = false )
56
+ Block (const Descriptor *Desc, bool IsStatic = false , bool IsExtern = false )
57
57
: DeclID((unsigned )-1 ), IsStatic(IsStatic), IsExtern(IsExtern),
58
58
Desc (Desc) {}
59
59
@@ -120,8 +120,8 @@ class Block final {
120
120
friend class DeadBlock ;
121
121
friend class InterpState ;
122
122
123
- Block (Descriptor *Desc, bool IsExtern, bool IsStatic, bool IsDead)
124
- : IsStatic(IsStatic), IsExtern(IsExtern), IsDead(true ), Desc(Desc) {}
123
+ Block (const Descriptor *Desc, bool IsExtern, bool IsStatic, bool IsDead)
124
+ : IsStatic(IsStatic), IsExtern(IsExtern), IsDead(true ), Desc(Desc) {}
125
125
126
126
// / Deletes a dead block at the end of its lifetime.
127
127
void cleanup ();
@@ -149,7 +149,7 @@ class Block final {
149
149
// / via invokeCtor.
150
150
bool IsInitialized = false ;
151
151
// / Pointer to the stack slot descriptor.
152
- Descriptor *Desc;
152
+ const Descriptor *Desc;
153
153
};
154
154
155
155
// / Descriptor for a dead block.
0 commit comments