Skip to content

Commit 8a15bdb

Browse files
ccotterkazutakahirata
authored andcommitted
[NFC][xray] Fix enable_if usage in XRay.h
The original usage of enable_if does not actually lookup the nested type called type, so the SFINAE does not kick in. Differential Revision: https://reviews.llvm.org/D157240
1 parent 487ab39 commit 8a15bdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/XRay/Graph.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class Graph {
144144

145145
public:
146146
template <bool IsConstDest,
147-
typename = std::enable_if<IsConstDest && !IsConst>>
147+
typename = std::enable_if_t<IsConstDest && !IsConst>>
148148
operator NeighborEdgeIteratorT<IsConstDest, IsOut, BaseIt,
149149
const EdgeValueType>() const {
150150
return NeighborEdgeIteratorT<IsConstDest, IsOut, BaseIt,

0 commit comments

Comments
 (0)