[PATCH] D20255: [LLVM] Fix some Clang-tidy modernize-use-bool-literals and Include What You Use warnings

Hans Wennborg via llvm-commits llvm-commits at lists.llvm.org
Mon May 16 08:59:07 PDT 2016


hans added inline comments.

================
Comment at: include/llvm/ADT/DenseMap.h:970
@@ -970,2 +969,3 @@
   void setNumEntries(unsigned Num) {
-    assert(Num < INT_MAX && "Cannot support more than INT_MAX entries");
+    assert(Num < std::numeric_limits<int>::max() &&
+           "Cannot support more than std::numeric_limits<int>::max() entries");
----------------
I don't think this is an improvement.


Repository:
  rL LLVM

http://reviews.llvm.org/D20255





More information about the llvm-commits mailing list