]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Cleanup HIR dump
authorMarc Poulhiès <dkm@kataplop.net>
Thu, 10 Aug 2023 21:06:32 +0000 (23:06 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:00:30 +0000 (19:00 +0100)
commitaef47d79660c81dedaa3655437e7c6653d00f358
tree1e06fc22859f3fded36d0fa8b5504c2413e815b4
parent0ebb0a75b40275fe80b8084a2854471437b1f195
gccrs: Cleanup HIR dump

visit_field() correctly handles empty unique_ptr<> and displays "none".

gcc/rust/ChangeLog:

* hir/rust-hir-dump.cc (Dump::visit): Remove useless if/else
already handled by visit_field.

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
gcc/rust/hir/rust-hir-dump.cc