[llvm] 4f414af - 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:39 PST 2022
Author: Simon Pilgrim
Date: 2022-01-13T11:10:50Z
New Revision: 4f414af6a77cdbd9b6303a7afa525cfb3f9d792a
URL: https://github.com/llvm/llvm-project/commit/4f414af6a77cdbd9b6303a7afa525cfb3f9d792a
DIFF: https://github.com/llvm/llvm-project/commit/4f414af6a77cdbd9b6303a7afa525cfb3f9d792a.diff
LOG: Fix MSVC "32-bit shift implicitly converted to 64 bits" warning. NFC.
Added:
Modified:
llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp b/llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
index e1fe18a099109..64c2f0d5f8e49 100644
--- a/llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
@@ -40,7 +40,7 @@ Align GISelKnownBits::computeKnownAlignment(Register R, unsigned Depth) {
case TargetOpcode::G_ASSERT_ALIGN: {
// TODO: Min with source
int64_t LogAlign = MI->getOperand(2).getImm();
- return Align(1u << LogAlign);
+ return Align(1ull << LogAlign);
}
case TargetOpcode::G_FRAME_INDEX: {
int FrameIdx = MI->getOperand(1).getIndex();
More information about the llvm-commits
mailing list