summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--runtime/utils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/utils.h b/runtime/utils.h
index e20412e1a..1a7fdfb4d 100644
--- a/runtime/utils.h
+++ b/runtime/utils.h
@@ -110,6 +110,7 @@ static inline bool IsAlignedParam(T x, int n) {
// Check whether an N-bit two's-complement representation can hold value.
static inline bool IsInt(int N, intptr_t value) {
+ if (N == kBitsPerIntPtrT) return true;
CHECK_LT(0, N);
CHECK_LT(N, kBitsPerIntPtrT);
intptr_t limit = static_cast<intptr_t>(1) << (N - 1);