diff options
| author | Jessica Clarke <jrtc27@jrtc27.com> | 2023-05-15 20:26:49 +0100 |
|---|---|---|
| committer | Jessica Clarke <jrtc27@jrtc27.com> | 2023-05-15 20:26:49 +0100 |
| commit | 74f207883bc5fe2a7300c4b4f1ff080a107ab148 (patch) | |
| tree | 5a4fe2a0de9c763396577251efe3c9144900b88c /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
| parent | a58ed7fcf6fcae7b622f8a1873459f28725ce7d6 (diff) | |
| download | llvm-74f207883bc5fe2a7300c4b4f1ff080a107ab148.zip llvm-74f207883bc5fe2a7300c4b4f1ff080a107ab148.tar.gz llvm-74f207883bc5fe2a7300c4b4f1ff080a107ab148.tar.bz2 | |
[clang] Fix emitVoidPtrVAArg for non-zero default alloca address space
Indirect arguments are passed on the stack and so va_arg should use the
default alloca address space, not hard-code 0, for pointers to those.
The only in-tree target with a non-zero default alloca address space is
AMDGPU, but that does not support variadic arguments, so we cannot test
this upstream. However, downstream in CHERI LLVM (and Morello LLVM, a
further fork of that) we have targets that do both and so require this
change.
Reviewed By: arsenm
Differential Revision: https://reviews.llvm.org/D132247
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions
