diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-06-23 18:08:58 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-06-23 18:08:58 +0000 |
commit | dd15ed8a83cb99b10895bf9dc20a7db1c7fe4232 (patch) | |
tree | 37475407a1d7c6f6ba279451340512981c437779 /include | |
parent | 737f207468d3abaf91c7b6e16b18aca4b48d789c (diff) | |
download | llvm-dd15ed8a83cb99b10895bf9dc20a7db1c7fe4232.tar.gz llvm-dd15ed8a83cb99b10895bf9dc20a7db1c7fe4232.tar.bz2 llvm-dd15ed8a83cb99b10895bf9dc20a7db1c7fe4232.tar.xz |
Cleanup r211507
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211521 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/ScaledNumber.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Support/ScaledNumber.h b/include/llvm/Support/ScaledNumber.h index 6a93623a8e..240d5b64aa 100644 --- a/include/llvm/Support/ScaledNumber.h +++ b/include/llvm/Support/ScaledNumber.h @@ -242,6 +242,8 @@ int compareImpl(uint64_t L, uint64_t R, int ScaleDiff); /// for greater than. template <class DigitsT> int compare(DigitsT LDigits, int16_t LScale, DigitsT RDigits, int16_t RScale) { + static_assert(!std::numeric_limits<DigitsT>::is_signed, "expected unsigned"); + // Check for zero. if (!LDigits) return RDigits ? -1 : 0; |