Skip to content

Commit a644a3b

Browse files
authored
Merge pull request #6006 from hughbe/irgen-fix-warning
2 parents 0f9bd42 + 7b73a24 commit a644a3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/GenType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ FixedTypeInfo::getSpareBitExtraInhabitantIndex(IRGenFunction &IGF,
312312
= emitGatherSpareBits(IGF, SpareBits, val, numOccupiedBits, 31);
313313
// Unbias by subtracting one.
314314

315-
uint64_t shifted = static_cast<uint64_t>(1 << numOccupiedBits);
315+
uint64_t shifted = static_cast<uint64_t>(1) << numOccupiedBits;
316316
spareIdx = IGF.Builder.CreateSub(spareIdx,
317317
llvm::ConstantInt::get(spareIdx->getType(), shifted));
318318
idx = IGF.Builder.CreateOr(idx, spareIdx);

0 commit comments

Comments
 (0)