Skip to content

Commit 639e1fa

Browse files
committed
[IntervalMap] Fix -Wdeprecated-anon-enum-enum-conversion due to InstrProf.h
1 parent e5480f5 commit 639e1fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/ADT/IntervalMap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ using IdxPair = std::pair<unsigned,unsigned>;
222222
template <typename T1, typename T2, unsigned N>
223223
class NodeBase {
224224
public:
225-
enum { Capacity = N };
225+
static constexpr unsigned Capacity = N;
226226

227227
T1 first[N];
228228
T2 second[N];

0 commit comments

Comments
 (0)