about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2021-02-19 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2021-02-19 00:00:00 +0000
commit343b67387772dbd068d06a76267288579d3eaed0 (patch)
tree30d65dde61fcba9451e2f51ce19eba0354d7dbf9 /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parent0148b971c921a0831fbf3357e5936eec724e3566 (diff)
downloadrust-343b67387772dbd068d06a76267288579d3eaed0.tar.gz
rust-343b67387772dbd068d06a76267288579d3eaed0.zip
Consider auto derefs before warning about write only fields
Changes from 81473 extended the dead code lint with an ability to detect
fields that are written to but never read from. The implementation skips
over fields on the left hand side of an assignment, without marking them
as live.

A field access might involve an automatic dereference and de-facto read
the field. Conservatively mark expressions with deref adjustments as
live to avoid generating false positive warnings.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions