]> granicus.if.org Git - llvm/commitdiff
Fix incorrectly formed assert statement.
authorZachary Turner <zturner@google.com>
Thu, 19 Jan 2017 23:41:11 +0000 (23:41 +0000)
committerZachary Turner <zturner@google.com>
Thu, 19 Jan 2017 23:41:11 +0000 (23:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292537 91177308-0d34-0410-b5e6-96231b3b80d8

lib/DebugInfo/PDB/Raw/HashTable.cpp

index cc83174a4d8bf9dd8bade38b1e695991b872e62d..68dbbd0885378ff40edff9902811ad0bdd3894a1 100644 (file)
@@ -181,7 +181,7 @@ void HashTable::grow() {
   uint32_t S = size();
   if (S < maxLoad(capacity()))
     return;
-  assert(capacity() != UINT32_MAX, "Can't grow Hash table!");
+  assert(capacity() != UINT32_MAX && "Can't grow Hash table!");
 
   uint32_t NewCapacity =
       (capacity() <= INT32_MAX) ? capacity() * 2 : UINT32_MAX;