Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit 6b55c2f

Browse files
committed
ScheduleTree: make type_ a const member
This field is used in multiple static dispatches and is publicly exposed. It is unclear why it has not been const from the start. The last assignments to it were removed in the previous commit. Make it a const member assignable only in constructors.
1 parent 1096b56 commit 6b55c2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tc/core/polyhedral/schedule_tree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ struct ScheduleTree {
477477
std::vector<ScheduleTreeUPtr> children_{};
478478

479479
public:
480-
detail::ScheduleTreeType type_{detail::ScheduleTreeType::None};
480+
const detail::ScheduleTreeType type_{detail::ScheduleTreeType::None};
481481
};
482482

483483
// Flatten nested nodes of the same type.

0 commit comments

Comments
 (0)