about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-02-25 14:14:39 +0100
committerGitHub <noreply@github.com>2022-02-25 14:14:39 +0100
commitcf3bb098881da40eed6ce7ad913a7e5d904663e2 (patch)
tree06d83d088c197a7e7d5c90c965f3a0847e4273c7 /compiler/rustc_codegen_llvm/src
parentf9f97b661a0160aa99083ac5c5b98a47f0778292 (diff)
parentd8064d7d49073ff9962369a40678c934d700f7e0 (diff)
downloadrust-cf3bb098881da40eed6ce7ad913a7e5d904663e2.tar.gz
rust-cf3bb098881da40eed6ce7ad913a7e5d904663e2.zip
Rollup merge of #94343 - RalfJung:fn-ptr, r=oli-obk
Miri fn ptr check: don't use conservative null check

In https://github.com/rust-lang/rust/pull/94270 I used the wrong NULL check for function pointers: `memory.ptr_may_be_null` is conservative even on machines that support ptr-to-int casts, leading to false errors in Miri.

This fixes that problem, and also replaces that foot-fun of a method with `scalar_may_be_null` which is never unnecessarily conservative.

r? `@oli-obk`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions