Skip to content

Commit 30da81d

Browse files
committed
use std::enable_if_t for the return type to compile properly with clang
1 parent 31544b6 commit 30da81d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/include/llvm/ADT/ilist_node.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,8 @@ class ilist_node_impl
149149
///
150150
/// This requires sentinel tracking to be explicitly enabled. Use the
151151
/// ilist_sentinel_tracking<true> option to get this API.
152-
template <
153-
typename = std::enable_if_t<OptionsT::is_sentinel_tracking_explicit>>
154-
bool isSentinel() const {
152+
template <typename T = OptionsT>
153+
std::enable_if_t<T::is_sentinel_tracking_explicit, bool> isSentinel() const {
155154
return node_base_type::isSentinel();
156155
}
157156
};

0 commit comments

Comments
 (0)