// Optional<StratifiedIndex> because Optional<StratifiedIndex> would
// eat up a considerable amount of extra memory, after struct
// padding/alignment is taken into account.
- static const auto SetSentinel =
- std::numeric_limits<StratifiedIndex>::max();
+ static const StratifiedIndex SetSentinel;
// \brief The index for the set "above" current
StratifiedIndex Above;
SmallSet<StratifiedIndex, 16> Visited;
for (unsigned I = 0, E = Links.size(); I < E; ++I) {
auto CurrentIndex = getHighestParentAbove(I);
- if (!Visited.insert(CurrentIndex)) {
+ if (!Visited.insert(CurrentIndex).second) {
continue;
}