@@ -7203,8 +7203,8 @@ class MappableExprsHandler {
72037203 llvm::DenseMap<const ValueDecl *, const OMPMapClause *> LambdasMap;
72047204
72057205 /// Map from component lists to their attach pointer expressions.
7206- mutable llvm::DenseMap<
7207- OMPClauseMappableExprCommon::MappableExprComponentListRef, const Expr *>
7206+ llvm::DenseMap<OMPClauseMappableExprCommon::MappableExprComponentListRef,
7207+ const Expr *>
72087208 AttachPtrExprMap;
72097209
72107210 /// Map from attach pointer expressions to their component depth.
@@ -7213,9 +7213,9 @@ class MappableExprsHandler {
72137213 /// The component-depth of `nullptr` (i.e. no attach-ptr) is `std::nullopt`.
72147214 /// TODO: Not urgent, but we should ideally use the number of pointer
72157215 /// dereferences in an expr as an indicator of its complexity, instead of the
7216- /// component-depth. That would be needed for us to treat `p[10] `,
7217- /// `*(p + 10)`, `*(p + 5 + 5)` together.
7218- mutable llvm::DenseMap<const Expr *, std::optional<size_t>>
7216+ /// component-depth. That would be needed for us to treat `p[1]`, `*(p + 10) `,
7217+ /// `*(p + 5 + 5)` together.
7218+ llvm::DenseMap<const Expr *, std::optional<size_t>>
72197219 AttachPtrComponentDepthMap = {{nullptr, std::nullopt}};
72207220
72217221 llvm::Value *getExprTypeSize(const Expr *E) const {
0 commit comments