aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-resolve-path.cc
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2023-05-05 17:16:08 +0100
committerPhilip Herron <philip.herron@embecosm.com>2023-05-08 14:53:18 +0000
commita252a9c12d7cc6cb160a57b271d2c8e8840b7f55 (patch)
tree17ff37108148a6c5b60f94e87db6db768bb21e25 /gcc/rust/backend/rust-compile-resolve-path.cc
parent85ca0ba82084a19707912009d713aa58ef775621 (diff)
downloadgcc-a252a9c12d7cc6cb160a57b271d2c8e8840b7f55.zip
gcc-a252a9c12d7cc6cb160a57b271d2c8e8840b7f55.tar.gz
gcc-a252a9c12d7cc6cb160a57b271d2c8e8840b7f55.tar.bz2
gccrs: Fix ICE in check for unused global variables
Calling get variable expression will return an expression but we are checking for unused decls so lets actually pass the decl. Addresses #2188 gcc/rust/ChangeLog: * checks/lints/rust-lint-unused-var.cc (UnusedVariables::Lint): use the decl not the expr Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-resolve-path.cc')
0 files changed, 0 insertions, 0 deletions