summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerValueBitMap.h
diff options
context:
space:
mode:
authorMarcos Pividori <mpividori@google.com>2017-02-08 00:03:31 +0000
committerMarcos Pividori <mpividori@google.com>2017-02-08 00:03:31 +0000
commit5a53567620545b995d2c26f12431c8e575dea802 (patch)
tree9663312a43f514bea8d83068c38f041315f3f0b6 /llvm/lib/Fuzzer/FuzzerValueBitMap.h
parent2a318a18dbf5d550fe5d9fa5608eb25961f4849d (diff)
downloadbcm5719-llvm-5a53567620545b995d2c26f12431c8e575dea802.tar.gz
bcm5719-llvm-5a53567620545b995d2c26f12431c8e575dea802.zip
[libFuzzer] Use long long to ensure 64 bits.
We should always use unsigned long long to ensure 64 bits. On Windows, unsigned long is 4 bytes. This was the reason why value-profile-cmp4.test was failing on Windows. Differential Revision: https://reviews.llvm.org/D29617 llvm-svn: 294390
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerValueBitMap.h')
-rw-r--r--llvm/lib/Fuzzer/FuzzerValueBitMap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerValueBitMap.h b/llvm/lib/Fuzzer/FuzzerValueBitMap.h
index 68dc3a9fc3a..600337ae407 100644
--- a/llvm/lib/Fuzzer/FuzzerValueBitMap.h
+++ b/llvm/lib/Fuzzer/FuzzerValueBitMap.h
@@ -68,7 +68,7 @@ struct ValueBitMap {
Other.Map[i] = 0;
}
if (M)
- Res += __builtin_popcountl(M);
+ Res += __builtin_popcountll(M);
}
NumBits = Res;
return OldNumBits < NumBits;
OpenPOWER on IntegriCloud