We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ce61d4 commit b01d393Copy full SHA for b01d393
llvm/lib/Transforms/Utils/MemoryOpRemark.cpp
@@ -295,7 +295,7 @@ void MemoryOpRemark::visitVariable(const Value *V,
295
SmallVectorImpl<VariableInfo> &Result) {
296
if (auto *GV = dyn_cast<GlobalVariable>(V)) {
297
auto *Ty = cast<PointerType>(GV->getType())->getElementType();
298
- int64_t Size = DL.getTypeSizeInBits(Ty).getFixedSize();
+ uint64_t Size = DL.getTypeSizeInBits(Ty).getFixedSize();
299
VariableInfo Var{nameOrNone(GV), Size};
300
if (!Var.isEmpty())
301
Result.push_back(std::move(Var));
0 commit comments