diff options
author | Fangrui Song <maskray@google.com> | 2019-04-27 15:33:22 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-04-27 15:33:22 +0000 |
commit | 795c00b21f03b6a79d26ef6789fbca553dd57dd8 (patch) | |
tree | 914a3a5fe9d0c13a725bd02769d092184a7b9141 /llvm/lib/Support/DJB.cpp | |
parent | 0969af6962e5899296fd6ff90fa1b13ebfdae996 (diff) | |
download | bcm5719-llvm-795c00b21f03b6a79d26ef6789fbca553dd57dd8.tar.gz bcm5719-llvm-795c00b21f03b6a79d26ef6789fbca553dd57dd8.zip |
[DJB] Fix variable case after D61178
llvm-svn: 359381
Diffstat (limited to 'llvm/lib/Support/DJB.cpp')
-rw-r--r-- | llvm/lib/Support/DJB.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Support/DJB.cpp b/llvm/lib/Support/DJB.cpp index b97e212aaaa..f06af7dfde4 100644 --- a/llvm/lib/Support/DJB.cpp +++ b/llvm/lib/Support/DJB.cpp @@ -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; } |