aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/ADT/PointerIntPair.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/PointerIntPair.h b/include/llvm/ADT/PointerIntPair.h
index 4c4bb7dd08..5a9425457d 100644
--- a/include/llvm/ADT/PointerIntPair.h
+++ b/include/llvm/ADT/PointerIntPair.h
@@ -53,7 +53,7 @@ public:
}
void setInt(IntType Int) {
- assert(Int < (1 << IntBits) && "Integer too large for field");
+ assert(unsigned(Int) < (1 << IntBits) && "Integer too large for field");
Value = reinterpret_cast<intptr_t>(getPointer()) | (intptr_t)Int;
}