[llvm] [CodeGen] Prevent potential multiplication overflow (PR #224665)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 22 02:12:13 PDT 2026


================
@@ -730,9 +730,9 @@ struct VectorInfo {
   ///
   /// \returns true if this is possible and false if not
   bool isInterleaved(unsigned Factor, const DataLayout &DL) const {
-    unsigned Size = DL.getTypeAllocSize(VTy->getElementType());
+    uint64_t Size = DL.getTypeAllocSize(VTy->getElementType());
----------------
arsenm wrote:

Keep in TypeSize?

https://github.com/llvm/llvm-project/pull/224665


More information about the llvm-commits mailing list