Skip to content

Commit

Permalink
[NFC][xray] Fix enable_if usage in XRay.h
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ccotter authored and kazutakahirata committed Aug 10, 2023
1 parent 487ab39 commit 8a15bdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/include/llvm/XRay/Graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class Graph {

public:
template <bool IsConstDest,
typename = std::enable_if<IsConstDest && !IsConst>>
typename = std::enable_if_t<IsConstDest && !IsConst>>
operator NeighborEdgeIteratorT<IsConstDest, IsOut, BaseIt,
const EdgeValueType>() const {
return NeighborEdgeIteratorT<IsConstDest, IsOut, BaseIt,
Expand Down

0 comments on commit 8a15bdb

Please sign in to comment.