Skip to content

Commit

Permalink
[NFC] Use an Explicit 64-Bit Shift
Browse files Browse the repository at this point in the history
  • Loading branch information
CodaFi committed Oct 14, 2020
1 parent 9c879c0 commit ba737b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/IRGen/GenType.cpp
Expand Up @@ -1216,7 +1216,7 @@ TypeConverter::createPrimitiveForAlignedPointer(llvm::PointerType *type,
Alignment align,
Alignment pointerAlignment) {
SpareBitVector spareBits = IGM.TargetInfo.PointerSpareBits;
for (unsigned bit = 0; Alignment(1 << bit) != pointerAlignment; ++bit) {
for (unsigned bit = 0; Alignment(1ull << bit) != pointerAlignment; ++bit) {
spareBits.setBit(bit);
}

Expand Down

0 comments on commit ba737b5

Please sign in to comment.