[llvm] b6e8086 - Fix MSVC "32-bit shift implicitly converted to 64 bits" warning. NFCI.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 28 07:24:09 PST 2020


Author: Simon Pilgrim
Date: 2020-02-28T15:23:37Z
New Revision: b6e80864b6da7937504dcf5698ea49801d1f7be2

URL: https://github.com/llvm/llvm-project/commit/b6e80864b6da7937504dcf5698ea49801d1f7be2
DIFF: https://github.com/llvm/llvm-project/commit/b6e80864b6da7937504dcf5698ea49801d1f7be2.diff

LOG: Fix MSVC "32-bit shift implicitly converted to 64 bits" warning. NFCI.

Added: 
    

Modified: 
    llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp b/llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
index 562475734ec4..4a53cc489184 100644
--- a/llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
@@ -1083,7 +1083,7 @@ HexagonTargetLowering::compressHvxPred(SDValue VecQ, const SDLoc &dl,
   // These are bytes with the LSB rotated left with respect to their index.
   for (unsigned i = 0; i != HwLen/8; ++i) {
     for (unsigned j = 0; j != 8; ++j)
-      Tmp.push_back(ConstantInt::get(Int8Ty, 1u << j));
+      Tmp.push_back(ConstantInt::get(Int8Ty, 1ull << j));
   }
   Constant *CV = ConstantVector::get(Tmp);
   unsigned Align = HwLen;


        


More information about the llvm-commits mailing list