From: Fangrui Song Date: Sat, 27 Apr 2019 15:33:22 +0000 (+0000) Subject: [DJB] Fix variable case after D61178 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=795c00b21f03b6a79d26ef6789fbca553dd57dd8;p=platform%2Fupstream%2Fllvm.git [DJB] Fix variable case after D61178 llvm-svn: 359381 --- diff --git a/llvm/lib/Support/DJB.cpp b/llvm/lib/Support/DJB.cpp index b97e212..f06af7d 100644 --- a/llvm/lib/Support/DJB.cpp +++ b/llvm/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; }