Skip to content

Commit 79daad3

Browse files
committed
Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning. NFC.
1 parent c84a936 commit 79daad3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Object/COFFObjectFile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2012,7 +2012,7 @@ bool Arm64XRelocRef::operator==(const Arm64XRelocRef &Other) const {
20122012
uint8_t Arm64XRelocRef::getEntrySize() const {
20132013
switch (getType()) {
20142014
case COFF::IMAGE_DVRT_ARM64X_FIXUP_TYPE_VALUE:
2015-
return (1u << getArg()) / sizeof(uint16_t) + 1;
2015+
return (1ull << getArg()) / sizeof(uint16_t) + 1;
20162016
case COFF::IMAGE_DVRT_ARM64X_FIXUP_TYPE_DELTA:
20172017
return 2;
20182018
default:

0 commit comments

Comments
 (0)