]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: fix ICE with hir dump on closure
authorPhilip Herron <herron.philip@googlemail.com>
Tue, 7 Jan 2025 18:43:32 +0000 (18:43 +0000)
committerArthur Cohen <arthur.cohen@embecosm.com>
Fri, 21 Mar 2025 11:56:55 +0000 (12:56 +0100)
commitd3efd2a91f54a19c3c2d59d690c447c0def26367
tree8f018b37cd520bd5d64beb96c642ee26fb91b8ba
parentef4028cd8472edd3b898dc5a2ac353b82c6303f4
gccrs: fix ICE with hir dump on closure

Return type and parameter types are optional on closures.

gcc/rust/ChangeLog:

* hir/rust-hir-dump.cc (Dump::visit): add null guard

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