Skip to content

Commit b01d393

Browse files
committed
Fix MSVC int64_t -> uint64_t "narrowing conversion" warning.
1 parent 0ce61d4 commit b01d393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Utils/MemoryOpRemark.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ void MemoryOpRemark::visitVariable(const Value *V,
295295
SmallVectorImpl<VariableInfo> &Result) {
296296
if (auto *GV = dyn_cast<GlobalVariable>(V)) {
297297
auto *Ty = cast<PointerType>(GV->getType())->getElementType();
298-
int64_t Size = DL.getTypeSizeInBits(Ty).getFixedSize();
298+
uint64_t Size = DL.getTypeSizeInBits(Ty).getFixedSize();
299299
VariableInfo Var{nameOrNone(GV), Size};
300300
if (!Var.isEmpty())
301301
Result.push_back(std::move(Var));

0 commit comments

Comments
 (0)