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

Commit a3bac39

Browse files
author
Sven Verdoolaege
committed
updateTopLevelContext: drop redundant const_cast
1 parent c0bd4d1 commit a3bac39

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tc/core/polyhedral/schedule_transforms.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,7 @@ void updateTopLevelContext(detail::ScheduleTree* root, isl::set context) {
289289
root->appendChild(
290290
ScheduleTree::makeContext(context, root->detachChildren()));
291291
}
292-
auto contextElem = const_cast<detail::ScheduleTreeContext*>(
293-
root->child({0})->as<detail::ScheduleTreeContext>());
292+
auto contextElem = root->child({0})->as<detail::ScheduleTreeContext>();
294293
TC_CHECK(contextElem) << "Expected domain(context(any()))";
295294
contextElem->context_ = contextElem->context_ & context;
296295
}

0 commit comments

Comments
 (0)