Skip to content

Commit 5dae05f

Browse files
committed
Fix MSVC signed/unsigned mismatch warning. NFC.
1 parent c859323 commit 5dae05f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Analysis/KernelInfo.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ void KernelInfo::updateForBB(const BasicBlock &BB,
186186
TypeSize::ScalarTy StaticSize = 0;
187187
if (std::optional<TypeSize> Size = Alloca->getAllocationSize(DL)) {
188188
StaticSize = Size->getFixedValue();
189-
assert(StaticSize <= std::numeric_limits<int64_t>::max());
189+
assert(StaticSize <=
190+
(TypeSize::ScalarTy)std::numeric_limits<int64_t>::max());
190191
AllocasStaticSizeSum += StaticSize;
191192
} else {
192193
++AllocasDyn;

0 commit comments

Comments
 (0)