Skip to content

Commit c60c12f

Browse files
committed
Fix MSVC warning about extending a uint32_t shift result to uint64_t. NFCI.
llvm-svn: 366808
1 parent 5d4bb86 commit c60c12f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4502,9 +4502,9 @@ void AMDGPUTargetLowering::computeKnownBitsForTargetNode(
45024502
Known.One |= ((LHSKnown.One.getZExtValue() >> SelBits) & 0xff) << I;
45034503
Known.Zero |= ((LHSKnown.Zero.getZExtValue() >> SelBits) & 0xff) << I;
45044504
} else if (SelBits == 0x0c) {
4505-
Known.Zero |= 0xff << I;
4505+
Known.Zero |= 0xFFull << I;
45064506
} else if (SelBits > 0x0c) {
4507-
Known.One |= 0xff << I;
4507+
Known.One |= 0xFFull << I;
45084508
}
45094509
Sel >>= 8;
45104510
}

0 commit comments

Comments
 (0)