about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorNathaniel McCallum <npmccallum@redhat.com>2020-07-06 14:32:30 -0400
committerNathaniel McCallum <npmccallum@redhat.com>2020-07-27 18:27:15 -0400
commit25670749b44a9c7a4cfd3fbf780bbe3344a9a6c5 (patch)
tree61d06dd1a5b0a791c528f22f01d3194282265fd4 /src/rustllvm/RustWrapper.cpp
parent0e11fc8053d32c44e7152865852acc5c3c54efb3 (diff)
downloadrust-25670749b44a9c7a4cfd3fbf780bbe3344a9a6c5.tar.gz
rust-25670749b44a9c7a4cfd3fbf780bbe3344a9a6c5.zip
Suppress debuginfo on naked function arguments
A function that has no prologue cannot be reasonably expected to support
debuginfo. In fact, the existing code (before this patch) would generate
invalid instructions that caused crashes. We can solve this easily by
just not emitting the debuginfo in this case.

Fixes https://github.com/rust-lang/rust/issues/42779
cc https://github.com/rust-lang/rust/issues/32408
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions