[llvm] [IR] Require index width to be ule pointer width (PR #70015)

Alexander Richardson via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 24 14:43:11 PDT 2023


================
@@ -649,6 +649,8 @@ Error DataLayout::setPointerAlignmentInBits(uint32_t AddrSpace, Align ABIAlign,
   if (PrefAlign < ABIAlign)
     return reportError(
         "Preferred alignment cannot be less than the ABI alignment");
+  if (IndexBitWidth > TypeBitWidth)
----------------
arichardson wrote:

Somehow missed that while scrolling over the changed files. LGTM.

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


More information about the llvm-commits mailing list