projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0969af6
)
[DJB] Fix variable case after D61178
author
Fangrui Song
<maskray@google.com>
Sat, 27 Apr 2019 15:33:22 +0000
(15:33 +0000)
committer
Fangrui Song
<maskray@google.com>
Sat, 27 Apr 2019 15:33:22 +0000
(15:33 +0000)
llvm-svn: 359381
llvm/lib/Support/DJB.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Support/DJB.cpp
b/llvm/lib/Support/DJB.cpp
index
b97e212
..
f06af7d
100644
(file)
--- 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
a
llASCII = true;
+ bool
A
llASCII = true;
for (unsigned char C : Buffer) {
H = H * 33 + ('A' <= C && C <= 'Z' ? C - 'A' + 'a' : C);
-
a
llASCII &= C <= 0x7f;
+
A
llASCII &= C <= 0x7f;
}
- if (
a
llASCII)
+ if (
A
llASCII)
return H;
return None;
}