7253057887
In order for LLVM to correctly generate debuginfo for msvc, we sometimes need to spill arguments to the stack and perform some direct & indirect offsets into the value. Previously, this code always performed those actions, even when not required as LLVM would clean it up during optimization. However, when MIR inlining is enabled, this can cause problems as the operations occur prior to the spilled value being initialized. To solve this, we first calculate the necessary offsets using just the type which is side-effect free and does not alter the LLVM IR. Then, if we are in a situation which requires us to generate the LLVM IR (and this situation only occurs for arguments, not local variables) then we perform the same calculation again, this time generating the appropriate LLVM IR as we go. |
||
---|---|---|
.. | ||
debuginfo-box-with-large-allocator.rs | ||
debuginfo-emit-llvm-ir-and-split-debuginfo.rs | ||
debuginfo-type-name-layout-ice-94961-1.rs | ||
debuginfo-type-name-layout-ice-94961-1.stderr | ||
debuginfo-type-name-layout-ice-94961-2.rs | ||
debuginfo-type-name-layout-ice-94961-2.stderr | ||
debuginfo_with_uninhabitable_field_and_unsized.rs | ||
issue-105386-debuginfo-ub.rs | ||
late-bound-projection.rs |