aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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
commit507329912aa343b8a430a97cf2d8f92eecb6dc01 (patch)
treec1e62cf2653b9d15e4a5c93465970cbe8c167979 /lib
parent1a4b19ef9b870d8c914bcd5ceb520a64a9a2cc52 (diff)
downloadexternal_llvm-507329912aa343b8a430a97cf2d8f92eecb6dc01.zip
external_llvm-507329912aa343b8a430a97cf2d8f92eecb6dc01.tar.gz
external_llvm-507329912aa343b8a430a97cf2d8f92eecb6dc01.tar.bz2
Fix issue with bitwise and precedence.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150897 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Support/Hashing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/Hashing.cpp b/lib/Support/Hashing.cpp
index 89b8453..21fcdd7 100644
--- a/lib/Support/Hashing.cpp
+++ b/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;