[PATCH] D133845: [llvm] increase upper bound for size in global structs

Ofek Shochat via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 14 02:21:45 PDT 2022


OfekShochat created this revision.
OfekShochat added a reviewer: efriedma.
Herald added a subscriber: hiraditya.
Herald added a project: All.
OfekShochat requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

on top of 9b1620a501c1 to close 57353.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D133845

Files:
  llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp


Index: llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
===================================================================
--- llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -3164,7 +3164,7 @@
                                      const Constant *BaseCV, uint64_t Offset,
                                      AsmPrinter::AliasMapTy *AliasList) {
   // Print the fields in successive locations. Pad to align if needed!
-  unsigned Size = DL.getTypeAllocSize(CS->getType());
+  uint64_t Size = DL.getTypeAllocSize(CS->getType());
   const StructLayout *Layout = DL.getStructLayout(CS->getType());
   uint64_t SizeSoFar = 0;
   for (unsigned I = 0, E = CS->getNumOperands(); I != E; ++I) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133845.460013.patch
Type: text/x-patch
Size: 729 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220914/a3caaee1/attachment.bin>


More information about the llvm-commits mailing list