[llvm] 8a15bdb - [NFC][xray] Fix enable_if usage in XRay.h
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 10 12:48:30 PDT 2023
Author: Chris Cotter
Date: 2023-08-10T12:37:00-07:00
New Revision: 8a15bdb5e637f81041591d97bea0267b5f053f16
URL: https://github.com/llvm/llvm-project/commit/8a15bdb5e637f81041591d97bea0267b5f053f16
DIFF: https://github.com/llvm/llvm-project/commit/8a15bdb5e637f81041591d97bea0267b5f053f16.diff
LOG: [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
Added:
Modified:
llvm/include/llvm/XRay/Graph.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/XRay/Graph.h b/llvm/include/llvm/XRay/Graph.h
index d599ec36116569..953ac1aa696371 100644
--- a/llvm/include/llvm/XRay/Graph.h
+++ b/llvm/include/llvm/XRay/Graph.h
@@ -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,
More information about the llvm-commits
mailing list