[PATCH] D133648: Clang, increase upper bound of partially initialized array sizes
Shafik Yaghmour via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 12 13:29:33 PDT 2022
shafik added inline comments.
================
Comment at: clang/lib/Sema/SemaInit.cpp:866
ElementEntity.getKind() == InitializedEntity::EK_VectorElement)
ElementEntity.setElementIndex(Init);
----------------
`setElementIndex(...)` takes `unsigned` as well and therefore `InitializedEntity` also uses `unsigned`.
I briefly looked at this with another bug https://github.com/llvm/llvm-project/issues/57317
and I believe the 32 bit assumption is made in a lot of this code in this area.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133648/new/
https://reviews.llvm.org/D133648
More information about the cfe-commits
mailing list