diff options
author | Nikita Popov <npopov@redhat.com> | 2024-08-20 09:29:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-20 09:29:05 +0200 |
commit | 472c79ca52806856c0dc7548a6f82d3bd9e7530c (patch) | |
tree | 716627fdc47ab0131f9debc721b7fef345a6b586 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | 08a0dece2b2431db8abe650bb43cba01e781e1ce (diff) | |
download | llvm-472c79ca52806856c0dc7548a6f82d3bd9e7530c.zip llvm-472c79ca52806856c0dc7548a6f82d3bd9e7530c.tar.gz llvm-472c79ca52806856c0dc7548a6f82d3bd9e7530c.tar.bz2 |
[IR] Check that arguments of naked function are not used (#104757)
Verify that the arguments of a naked function are not used. They can
only be referenced via registers/stack in inline asm, not as IR values.
Doing so will result in assertion failures in the backend.
There's probably more that we should verify, though I'm not completely
sure what the constraints are (would it be correct to require that naked
functions are exactly an inline asm call + unreachable, or is more
allowed?)
Fixes https://github.com/llvm/llvm-project/issues/104718.
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
0 files changed, 0 insertions, 0 deletions