aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Hashing.cpp
diff options
context:
space:
mode:
authorAhmed Charles <ace2001ac@gmail.com>2012-02-18 22:56:41 +0000
committerAhmed Charles <ace2001ac@gmail.com>2012-02-18 22:56:41 +0000
commit4f9484722ced89d5d7b629f9d42f993207bf44b0 (patch)
tree4745adfc5acc4ab3e9191f9b2751a0a104966a78 /llvm/lib/Support/Hashing.cpp
parent1c95ef4e94c0d041421e44637524363b208eed09 (diff)
downloadllvm-4f9484722ced89d5d7b629f9d42f993207bf44b0.zip
llvm-4f9484722ced89d5d7b629f9d42f993207bf44b0.tar.gz
llvm-4f9484722ced89d5d7b629f9d42f993207bf44b0.tar.bz2
Fix issue with bitwise and precedence.
llvm-svn: 150897
Diffstat (limited to 'llvm/lib/Support/Hashing.cpp')
-rw-r--r--llvm/lib/Support/Hashing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Hashing.cpp b/llvm/lib/Support/Hashing.cpp
index 89b8453..21fcdd7 100644
--- a/llvm/lib/Support/Hashing.cpp
+++ b/llvm/lib/Support/Hashing.cpp
@@ -14,7 +14,7 @@ namespace llvm {
// Add a possibly unaligned sequence of bytes.
void GeneralHash::addUnaligned(const uint8_t *I, const uint8_t *E) {
ptrdiff_t Length = E - I;
- if (uintptr_t(I) & 3 == 0) {
+ if ((uintptr_t(I) & 3) == 0) {
while (Length > 3) {
mix(*reinterpret_cast<const uint32_t *>(I));
I += 4;