about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorWesley Wiser <wesleywiser@microsoft.com>2021-04-06 13:34:17 -0400
committerWesley Wiser <wesleywiser@microsoft.com>2021-04-08 14:08:56 -0400
commit533002d3a1f7f95f167323174205b57564b576a6 (patch)
tree9464f6d5b20dab3db01b9bd190bccae4c61ef733 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parente9cdcccfa8321363999a43ee30a18b3aadbc20de (diff)
downloadrust-533002d3a1f7f95f167323174205b57564b576a6.tar.gz
rust-533002d3a1f7f95f167323174205b57564b576a6.zip
Fix closed over variables not available in debuginfo for Windows MSVC
The issue was that the resulting debuginfo was too complex for LLVM to
translate into CodeView records correctly. As a result, it simply
ignored the debuginfo which meant Windows debuggers could not display
any closed over variables when stepping inside a closure.

This fixes that by spilling additional variables to the stack so that
the resulting debuginfo is simple (just `*my_variable.dbg.spill`) and
LLVM can generate the correct CV records.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions