aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2024-03-27 11:35:12 -0700
committerCraig Topper <craig.topper@sifive.com>2024-03-27 13:01:23 -0700
commitacab142751d3498c6d0aa63253dc1c9f3f83f268 (patch)
treecab99bbe3c08d5d149ca3dfd1570ffdb230ca99e /clang/lib/CodeGen/CodeGenModule.cpp
parent0d7ea50d20414e2da3019c45a0a3de804167fa47 (diff)
downloadllvm-acab142751d3498c6d0aa63253dc1c9f3f83f268.zip
llvm-acab142751d3498c6d0aa63253dc1c9f3f83f268.tar.gz
llvm-acab142751d3498c6d0aa63253dc1c9f3f83f268.tar.bz2
[LegalizeDAG] Freeze index when converting insert_elt/insert_subvector to load/store on stack.
We try clamp the index to be within the bounds of the stack object we create, but if we don't freeze it, poison can propagate into the clamp code. This can cause the access to leave the bounds of the stack object. We have other instances of this issue in type legalization and extract_elt/subvector, but posting this patch first for direction check. Fixes #86717
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions