From fc0f1f504b8647a00be2784df11c118867f9142b Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sat, 27 Apr 2019 15:33:22 +0000 Subject: [PATCH] [DJB] Fix variable case after D61178 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359381 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/DJB.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.50.1