diff options
| author | Kyle Huey <khuey@kylehuey.com> | 2024-11-18 18:48:10 -0800 |
|---|---|---|
| committer | Kyle Huey <khuey@kylehuey.com> | 2024-11-19 05:19:09 -0800 |
| commit | fcbc3d97b878457a81c11a0756471a8fec580a7e (patch) | |
| tree | 65ba7257fe57f58781ce65108d62b996563c1cc3 /tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs | |
| parent | 17410a7ba20fba8f3e1d44f5a21a4fa6f482b5c0 (diff) | |
| download | rust-fcbc3d97b878457a81c11a0756471a8fec580a7e.tar.gz rust-fcbc3d97b878457a81c11a0756471a8fec580a7e.zip | |
When the required discriminator value exceeds LLVM's limits, drop the debug info for the function instead of panicking.
The maximum discriminator value LLVM can currently encode is 2^12. If macro use results in more than 2^12 calls to the same function attributed to the same callsite, and those calls are MIR-inlined, we will require more than the maximum discriminator value to completely represent the debug information. Once we reach that point drop the debug info instead.
Diffstat (limited to 'tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs')
0 files changed, 0 insertions, 0 deletions
