File tree 3 files changed +9
-3
lines changed
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,9 @@ public SwiftObjectHeader {
153
153
~SILBasicBlock ();
154
154
155
155
enum { numCustomBits = std::numeric_limits<CustomBitsType>::digits };
156
- enum { maxBitfieldID = std::numeric_limits<uint64_t >::max () };
156
+
157
+ constexpr static const size_t maxBitfieldID =
158
+ std::numeric_limits<uint64_t >::max();
157
159
158
160
// / Gets the ID (= index in the function's block list) of the block.
159
161
// /
Original file line number Diff line number Diff line change @@ -127,7 +127,9 @@ class alignas(8) SILNode :
127
127
enum { NumMarkDependenceKindBits = 2 };
128
128
129
129
enum { numCustomBits = 20 };
130
- enum { maxBitfieldID = std::numeric_limits<uint64_t >::max () >> numCustomBits };
130
+
131
+ constexpr static const size_t maxBitfieldID =
132
+ std::numeric_limits<uint64_t >::max () >> numCustomBits;
131
133
132
134
protected:
133
135
friend class SILInstruction ;
Original file line number Diff line number Diff line change @@ -1021,7 +1021,9 @@ ValueOwnershipKind::getForwardingOperandOwnership(bool allowUnowned) const {
1021
1021
class Operand {
1022
1022
public:
1023
1023
enum { numCustomBits = 8 };
1024
- enum { maxBitfieldID = std::numeric_limits<uint64_t >::max () >> numCustomBits };
1024
+
1025
+ constexpr static const size_t maxBitfieldID =
1026
+ std::numeric_limits<uint64_t >::max() >> numCustomBits;
1025
1027
1026
1028
private:
1027
1029
template <class , class > friend class SILBitfield ;
You can’t perform that action at this time.
0 commit comments