diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2024-09-26 22:46:16 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-19 15:32:15 +0100 |
commit | fb7e607d2f72efd0047f35afab34d5073db2451a (patch) | |
tree | 3fa6231a39167b376b6871e266165b08b06642cd | |
parent | ad4c2360e393cd7f24b5c7b2405ffa80e92fcf4d (diff) | |
download | gcc-fb7e607d2f72efd0047f35afab34d5073db2451a.zip gcc-fb7e607d2f72efd0047f35afab34d5073db2451a.tar.gz gcc-fb7e607d2f72efd0047f35afab34d5073db2451a.tar.bz2 |
gccrs: Make node id getter const.
gcc/rust/ChangeLog:
* ast/rust-ast.h: Node id getter could be const.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
-rw-r--r-- | gcc/rust/ast/rust-ast.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h index f5a2e77..129a304 100644 --- a/gcc/rust/ast/rust-ast.h +++ b/gcc/rust/ast/rust-ast.h @@ -1587,7 +1587,7 @@ public: virtual Kind get_kind () const = 0; - NodeId get_node_id () { return node_id; } + NodeId get_node_id () const { return node_id; } protected: GenericParam () : node_id (Analysis::Mappings::get ().get_next_node_id ()) {} |