From: Fangrui Song Date: Sat, 27 Apr 2019 15:33:22 +0000 (+0000) Subject: [DJB] Fix variable case after D61178 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fc0f1f504b8647a00be2784df11c118867f9142b;p=llvm [DJB] Fix variable case after D61178 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359381 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/DJB.cpp b/lib/Support/DJB.cpp index b97e212aaaa..f06af7dfde4 100644 --- a/lib/Support/DJB.cpp +++ b/lib/Support/DJB.cpp @@ -58,12 +58,12 @@ static UTF32 foldCharDwarf(UTF32 C) { } static Optional 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; }