@@ -186,7 +186,7 @@ namespace {
186186 /// Find the path length and type of the most-derived subobject in the given
187187 /// path, and find the size of the containing array, if any.
188188 static unsigned
189- findMostDerivedSubobject(ASTContext &Ctx, APValue::LValueBase Base,
189+ findMostDerivedSubobject(const ASTContext &Ctx, APValue::LValueBase Base,
190190 ArrayRef<APValue::LValuePathEntry> Path,
191191 uint64_t &ArraySize, QualType &Type, bool &IsArray,
192192 bool &FirstEntryIsUnsizedArray) {
@@ -286,7 +286,7 @@ namespace {
286286 MostDerivedPathLength(0), MostDerivedArraySize(0),
287287 MostDerivedType(T.isNull() ? QualType() : T.getNonReferenceType()) {}
288288
289- SubobjectDesignator(ASTContext &Ctx, const APValue &V)
289+ SubobjectDesignator(const ASTContext &Ctx, const APValue &V)
290290 : Invalid(!V.isLValue() || !V.hasLValuePath()), IsOnePastTheEnd(false),
291291 FirstEntryIsAnUnsizedArray(false), MostDerivedIsArrayElement(false),
292292 MostDerivedPathLength(0), MostDerivedArraySize(0) {
@@ -1589,7 +1589,7 @@ namespace {
15891589 if (AllowConstexprUnknown)
15901590 V.setConstexprUnknown();
15911591 }
1592- void setFrom(ASTContext &Ctx, const APValue &V) {
1592+ void setFrom(const ASTContext &Ctx, const APValue &V) {
15931593 assert(V.isLValue() && "Setting LValue from a non-LValue?");
15941594 Base = V.getLValueBase();
15951595 Offset = V.getLValueOffset();
0 commit comments