diff --git a/clang/lib/AST/ByteCode/Integral.h b/clang/lib/AST/ByteCode/Integral.h index 5bf6621874e69..e90f1a9a74e1c 100644 --- a/clang/lib/AST/ByteCode/Integral.h +++ b/clang/lib/AST/ByteCode/Integral.h @@ -217,10 +217,6 @@ template class Integral final { return Integral(Value.V); } - static bool inRange(int64_t Value, unsigned NumBits) { - return CheckRange(Value); - } - static bool increment(Integral A, Integral *R) { return add(A, Integral(ReprT(1)), A.bitWidth(), R); } @@ -323,13 +319,6 @@ template class Integral final { return false; } } - template static bool CheckRange(int64_t V) { - if constexpr (std::is_signed_v) { - return Min <= V && V <= Max; - } else { - return V >= 0 && static_cast(V) <= Max; - } - } }; template