Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 3 Jan 2023 12:23:06 +0000 (12:23 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 3 Jan 2023 12:23:13 +0000 (12:23 +0000)
llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp

index 6eb5167..a0d900c 100644 (file)
@@ -199,7 +199,7 @@ public:
     else
       return false;
 
-    if (Imm != 1 << (ShtAmt - 1))
+    if (Imm != 1ULL << (ShtAmt - 1))
       return false;
 
     Res1 = Op.getOperand(0);