]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: fix ICE during HIR dump
authorPhilip Herron <herron.philip@googlemail.com>
Mon, 6 Jan 2025 11:02:51 +0000 (11:02 +0000)
committerArthur Cohen <arthur.cohen@embecosm.com>
Fri, 21 Mar 2025 11:55:45 +0000 (12:55 +0100)
commitb0563bb8a5279719360027e3ca0305fde730e5e0
tree38f862657b58b43d10b34a564a80372db49a5b14
parent1c13bc20ca23774567e192a47d894cad362086df
gccrs: fix ICE during HIR dump

These hir nodes have optional expressions which need guarded

gcc/rust/ChangeLog:

* hir/rust-hir-dump.cc (Dump::do_qualifiedpathtype): add guard
(Dump::do_traitfunctiondecl): likewise
(Dump::visit): likewise

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
gcc/rust/hir/rust-hir-dump.cc