[llvm] a5507d2 - Fix MSVC "32-bit shift implicitly converted to 64 bits" warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 13 03:11:40 PST 2022
Author: Simon Pilgrim
Date: 2022-01-13T11:10:50Z
New Revision: a5507d2e253a2c94c3ca7794edf7385af8082b97
URL: https://github.com/llvm/llvm-project/commit/a5507d2e253a2c94c3ca7794edf7385af8082b97
DIFF: https://github.com/llvm/llvm-project/commit/a5507d2e253a2c94c3ca7794edf7385af8082b97.diff
LOG: Fix MSVC "32-bit shift implicitly converted to 64 bits" warning. NFC.
Added:
Modified:
llvm/unittests/CodeGen/GlobalISel/KnownBitsTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/CodeGen/GlobalISel/KnownBitsTest.cpp b/llvm/unittests/CodeGen/GlobalISel/KnownBitsTest.cpp
index e9b2d4f5623f3..7a2fc0ff1d51d 100644
--- a/llvm/unittests/CodeGen/GlobalISel/KnownBitsTest.cpp
+++ b/llvm/unittests/CodeGen/GlobalISel/KnownBitsTest.cpp
@@ -1961,7 +1961,7 @@ TEST_F(AMDGPUGISelMITest, TestKnownBitsAssertAlign) {
EXPECT_EQ(64u, Res.getBitWidth());
EXPECT_EQ(NumBits, Res.Zero.countTrailingOnes());
EXPECT_EQ(64u, Res.One.countTrailingZeros());
- EXPECT_EQ(Align(1 << NumBits), Info.computeKnownAlignment(Copies[Idx]));
+ EXPECT_EQ(Align(1ull << NumBits), Info.computeKnownAlignment(Copies[Idx]));
};
CheckBits(0, Copies.size() - 7);
More information about the llvm-commits
mailing list