diff options
author | Philip Herron <herron.philip@googlemail.com> | 2023-05-05 17:16:08 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:37:15 +0100 |
commit | c6f1b887e8f52ba6252ad83e03cbea41af326f6e (patch) | |
tree | cc5e46f34050a06f4bf8fac3c40230f1af695a5e /gcc/rust/backend/rust-compile-resolve-path.cc | |
parent | af874e4bcd601e2fac3598c122641db6f3b1d95c (diff) | |
download | gcc-c6f1b887e8f52ba6252ad83e03cbea41af326f6e.zip gcc-c6f1b887e8f52ba6252ad83e03cbea41af326f6e.tar.gz gcc-c6f1b887e8f52ba6252ad83e03cbea41af326f6e.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