aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2025-05-27 14:59:30 -0400
committerGitHub <noreply@github.com>2025-05-27 14:59:30 -0400
commitd1a6327b2b5d859c992599ac217aaa6d8b83a998 (patch)
tree17424342e536a3effd4556db472ece4a42373678 /llvm/lib/IR/Module.cpp
parent7c9e0d5b5d6de3d7812954fc18f74d705d5c5610 (diff)
downloadllvm-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