[llvm] r292537 - Fix incorrectly formed assert statement.

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 19 15:41:11 PST 2017


Author: zturner
Date: Thu Jan 19 17:41:11 2017
New Revision: 292537

URL: http://llvm.org/viewvc/llvm-project?rev=292537&view=rev
Log:
Fix incorrectly formed assert statement.

Modified:
    llvm/trunk/lib/DebugInfo/PDB/Raw/HashTable.cpp

Modified: llvm/trunk/lib/DebugInfo/PDB/Raw/HashTable.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/PDB/Raw/HashTable.cpp?rev=292537&r1=292536&r2=292537&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/PDB/Raw/HashTable.cpp (original)
+++ llvm/trunk/lib/DebugInfo/PDB/Raw/HashTable.cpp Thu Jan 19 17:41:11 2017
@@ -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;




More information about the llvm-commits mailing list