We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a030e61 + 2c5d880 commit 354eb4dCopy full SHA for 354eb4d
include/swift/AST/SimpleRequest.h
@@ -113,9 +113,7 @@ namespace detail {
113
114
/// Extract the first, nearest source location from a tuple.
115
template<unsigned Index, typename ...Types,
116
- typename = typename std::enable_if<sizeof...(Types) - Index
117
- ? true
118
- : false>::type>
+ typename = typename std::enable_if<(Index < sizeof...(Types))>::type>
119
SourceLoc extractNearestSourceLocTuple(const std::tuple<Types...> &value) {
120
SourceLoc loc = maybeExtractNearestSourceLoc(std::get<Index>(value));
121
if (loc.isValid())
0 commit comments