diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2025-05-27 14:59:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-27 14:59:30 -0400 |
commit | d1a6327b2b5d859c992599ac217aaa6d8b83a998 (patch) | |
tree | 17424342e536a3effd4556db472ece4a42373678 /llvm/lib/IR/Module.cpp | |
parent | 7c9e0d5b5d6de3d7812954fc18f74d705d5c5610 (diff) | |
download | llvm-d1a6327b2b5d859c992599ac217aaa6d8b83a998.zip llvm-d1a6327b2b5d859c992599ac217aaa6d8b83a998.tar.gz llvm-d1a6327b2b5d859c992599ac217aaa6d8b83a998.tar.bz2 |
[C2y] Fix _Countof handling of VLAs (#141621)
It turns out that getVLASize() does not get you the size of a single
dimension of the VLA, it gets you the full count of all elements. This
caused _Countof to return invalid values on VLA ranks. Now switched to
using getVLAElements1D() instead, which only gets a single dimension.
Fixes #141409
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions