]> git.ipfire.org Git - thirdparty/gcc.git/commit
Use new name resolver to compile constant items
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Tue, 6 Feb 2024 16:21:45 +0000 (17:21 +0100)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Tue, 26 Mar 2024 17:35:02 +0000 (17:35 +0000)
commit4d64d55f5a8e2ed4fbeca2d56da7c51d65fe040b
treed1302f878fe7d8b53fd3e5e36e95b3bf786282c3
parentc14e44a53c10a8bcd3fbe87c243ac65ea5aa813b
Use new name resolver to compile constant items

Constant items were handled only by the old resolver, this lead to an
ICE when using the new resolver on some rust code containing a constant
item as the new and the old resolver cannot be used at the same time.

gcc/rust/ChangeLog:

* backend/rust-compile-item.cc (CompileItem::visit): Check the resolver
flag and use the new one when required.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/backend/rust-compile-item.cc