about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorBastian Kersting <bkersting@google.com>2024-12-17 13:00:22 +0000
committerBastian Kersting <bkersting@google.com>2025-01-31 11:13:34 +0000
commit77f3081f84f60b4ce4081dfc517b3d1fe061fef6 (patch)
treeeb27cd69bd3c53bceacb24cc86f6099af061af2a /compiler/rustc_codegen_llvm/src/errors.rs
parent7b19e13d324ba932f3e887c1100d18e4e9b353dc (diff)
downloadrust-77f3081f84f60b4ce4081dfc517b3d1fe061fef6.tar.gz
rust-77f3081f84f60b4ce4081dfc517b3d1fe061fef6.zip
Insert null checks for pointer dereferences when debug assertions are enabled
Similar to how the alignment is already checked, this adds a check
for null pointer dereferences in debug mode. It is implemented similarly
to the alignment check as a MirPass.

This is related to a 2025H1 project goal for better UB checks in debug
mode: https://github.com/rust-lang/rust-project-goals/pull/177.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions