[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 09:52:42 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:
I think it would be good to add tests for this: You could use the test I added in https://reviews.llvm.org/D135158?
https://github.com/llvm/llvm-project/pull/70015
More information about the llvm-commits
mailing list