[llvm] [IR] Require index width to be ule pointer width (PR #70015)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 24 12:19:28 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)
----------------
nikic wrote:
There is a test here: https://github.com/llvm/llvm-project/pull/70015/files#diff-934d54edeeb3870404b0553b4964c06cde47e081976e180580f5ade6ee9bd2ab
https://github.com/llvm/llvm-project/pull/70015
More information about the llvm-commits
mailing list