[clang] [llvm] [llvm:ir] Add support for constant data exceeding 4GiB (PR #126481)
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 10 14:14:19 PST 2025
================
@@ -364,13 +364,13 @@ bool ConstantAggregateBuilder::split(size_t Index, CharUnits Hint) {
// FIXME: If possible, split into two ConstantDataSequentials at Hint.
CharUnits ElemSize = getSize(CDS->getElementType());
replace(Elems, Index, Index + 1,
- llvm::map_range(llvm::seq(0u, CDS->getNumElements()),
+ llvm::map_range(llvm::seq(uint64_t(0u), CDS->getNumElements()),
[&](unsigned Elem) {
----------------
efriedma-quic wrote:
```suggestion
[&](uint64_t Elem) {
```
https://github.com/llvm/llvm-project/pull/126481
More information about the llvm-commits
mailing list