mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning.
This commit is contained in:
parent
8257854bda
commit
2593b6907b
@ -731,8 +731,8 @@ bool HWAddressSanitizer::instrumentMemAccess(InterestingMemoryOperand &O) {
|
|||||||
|
|
||||||
IRBuilder<> IRB(O.getInsn());
|
IRBuilder<> IRB(O.getInsn());
|
||||||
if (isPowerOf2_64(O.TypeSize) &&
|
if (isPowerOf2_64(O.TypeSize) &&
|
||||||
(O.TypeSize / 8 <= (1UL << (kNumberOfAccessSizes - 1))) &&
|
(O.TypeSize / 8 <= (1ULL << (kNumberOfAccessSizes - 1))) &&
|
||||||
(!O.Alignment || *O.Alignment >= (1UL << Mapping.Scale) ||
|
(!O.Alignment || *O.Alignment >= (1ULL << Mapping.Scale) ||
|
||||||
*O.Alignment >= O.TypeSize / 8)) {
|
*O.Alignment >= O.TypeSize / 8)) {
|
||||||
size_t AccessSizeIndex = TypeSizeToSizeIndex(O.TypeSize);
|
size_t AccessSizeIndex = TypeSizeToSizeIndex(O.TypeSize);
|
||||||
if (ClInstrumentWithCalls) {
|
if (ClInstrumentWithCalls) {
|
||||||
|
Loading…
Reference in New Issue
Block a user