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 dc5915c + 9abc323 commit 37db587Copy full SHA for 37db587
include/swift/AST/SimpleRequest.h
@@ -113,7 +113,9 @@ 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<Index < sizeof...(Types)>::type>
+ typename = typename std::enable_if<sizeof...(Types) - Index
117
+ ? true
118
+ : false>::type>
119
SourceLoc extractNearestSourceLocTuple(const std::tuple<Types...> &value) {
120
SourceLoc loc = maybeExtractNearestSourceLoc(std::get<Index>(value));
121
if (loc.isValid())
0 commit comments