]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Fix crash in hir dump as labels are optional
authorPhilip Herron <herron.philip@googlemail.com>
Wed, 16 Apr 2025 16:00:28 +0000 (17:00 +0100)
committerPhilip Herron <philip.herron@embecosm.com>
Wed, 16 Apr 2025 22:19:07 +0000 (22:19 +0000)
commit95615a1ab48f1493fef21bb9f5f465f02ff527e4
treebab97114294c127efa807584787ffb1e0e16a69e
parenta59e57efe221ef6296a8b5fcb5290733e15a3d20
gccrs: Fix crash in hir dump as labels are optional

gcc/rust/ChangeLog:

* hir/rust-hir-dump.cc (Dump::visit): add guard for optional label

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