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

Commit 96d058f

Browse files
committed
ScheduleTree: make "write" method abstract
It does not make sense to output a tree node for which we don't know the specific type. This change also makes the ScheduleTree class abstract, making it impossible to construct instances of this class even privately.
1 parent 58cd495 commit 96d058f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tc/core/polyhedral/schedule_tree.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,9 +463,7 @@ struct ScheduleTree {
463463

464464
// Write the textual representation of the node to "os".
465465
// Note that this function does _not_ output the child trees.
466-
virtual std::ostream& write(std::ostream& os) const {
467-
return os;
468-
}
466+
virtual std::ostream& write(std::ostream& os) const = 0;
469467

470468
//
471469
// Data members

0 commit comments

Comments
 (0)