diff options
Diffstat (limited to 'utils/TableGen/Types.cpp')
| -rw-r--r-- | utils/TableGen/Types.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/TableGen/Types.cpp b/utils/TableGen/Types.cpp index 35458296f8fd..04d9e40f6743 100644 --- a/utils/TableGen/Types.cpp +++ b/utils/TableGen/Types.cpp @@ -40,5 +40,6 @@ const char *llvm::getMinimalTypeForEnumBitfield(uint64_t Size) { uint64_t MaxIndex = Size; if (MaxIndex > 0) MaxIndex--; + assert(MaxIndex <= 64 && "Too many bits"); return getMinimalTypeForRange(1ULL << MaxIndex); } |
