diff options
author | khaki3 <47756807+khaki3@users.noreply.github.com> | 2024-12-10 16:08:22 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-10 16:08:22 -0800 |
commit | 609899f443223ccc977c25293931067e73ad76db (patch) | |
tree | 2369fc65c2d584da3c168be9b96fa38f2f10c811 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 377d1f0a6b862183b25701cc765fca7f84ea8e32 (diff) | |
download | llvm-609899f443223ccc977c25293931067e73ad76db.zip llvm-609899f443223ccc977c25293931067e73ad76db.tar.gz llvm-609899f443223ccc977c25293931067e73ad76db.tar.bz2 |
[flang][cuda] Avoid stack corruption when setting kernel launch parameters (#119469)
In order to get the pointer to a structure member, `getelementptr`
typically requires two indices: one to indicate the structure itself,
and another to specify the member's position. We are missing the former
in `GPULaunchKernelConversion`, so generated code may cause stack
corruption. This PR corrects the indices of a structure used as a kernel
launch temp.
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions