]> git.ipfire.org Git - thirdparty/gcc.git/commit
Small fix to the ast collector visitor
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Wed, 25 Oct 2023 14:51:31 +0000 (16:51 +0200)
committerCohenArthur <arthur.cohen@embecosm.com>
Mon, 6 Nov 2023 17:13:22 +0000 (17:13 +0000)
commite7caf68fe08f371102b605450e5a9ab516e2a90b
tree3406e18e0c6ea899fefa4a834e25c282fd20211c
parentfb346fab74307399234e1bf8891332943eabb8d6
Small fix to the ast collector visitor

The parameter type was used instead of the default value.

gcc/rust/ChangeLog:

* ast/rust-ast-collector.cc (TokenCollector::visit): Check for presence
of a type and use the default value instead of the type.

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