[llvm] r359381 - [DJB] Fix variable case after D61178

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 27 08:33:23 PDT 2019


Author: maskray
Date: Sat Apr 27 08:33:22 2019
New Revision: 359381

URL: http://llvm.org/viewvc/llvm-project?rev=359381&view=rev
Log:
[DJB] Fix variable case after D61178

Modified:
    llvm/trunk/lib/Support/DJB.cpp

Modified: llvm/trunk/lib/Support/DJB.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/DJB.cpp?rev=359381&r1=359380&r2=359381&view=diff
==============================================================================
--- llvm/trunk/lib/Support/DJB.cpp (original)
+++ llvm/trunk/lib/Support/DJB.cpp Sat Apr 27 08:33:22 2019
@@ -58,12 +58,12 @@ static UTF32 foldCharDwarf(UTF32 C) {
 }
 
 static Optional<uint32_t> fastCaseFoldingDjbHash(StringRef Buffer, uint32_t H) {
-  bool allASCII = true;
+  bool AllASCII = true;
   for (unsigned char C : Buffer) {
     H = H * 33 + ('A' <= C && C <= 'Z' ? C - 'A' + 'a' : C);
-    allASCII &= C <= 0x7f;
+    AllASCII &= C <= 0x7f;
   }
-  if (allASCII)
+  if (AllASCII)
     return H;
   return None;
 }




More information about the llvm-commits mailing list