about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry
diff options
context:
space:
mode:
authorKyle Huey <khuey@kylehuey.com>2024-11-18 18:48:10 -0800
committerKyle Huey <khuey@kylehuey.com>2024-11-19 05:19:09 -0800
commitfcbc3d97b878457a81c11a0756471a8fec580a7e (patch)
tree65ba7257fe57f58781ce65108d62b996563c1cc3 /tests/codegen/patchable-function-entry
parent17410a7ba20fba8f3e1d44f5a21a4fa6f482b5c0 (diff)
downloadrust-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')
0 files changed, 0 insertions, 0 deletions