Skip to content

Commit 7b73a24

Browse files
committed
Fix MSVC warning compiling IRGen
1 parent e60daaa commit 7b73a24

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)