Skip to content

Commit 19e7458

Browse files
committed
Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning.
1 parent c601be9 commit 19e7458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Analysis/ConstantFolding.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2432,7 +2432,7 @@ static Constant *ConstantFoldScalarCall1(StringRef Name,
24322432
if (!(Val & 0xF))
24332433
continue;
24342434

2435-
QuadMask |= (1 << I);
2435+
QuadMask |= (1ULL << I);
24362436
}
24372437
return ConstantInt::get(Ty, QuadMask);
24382438
}

0 commit comments

Comments
 (0)