aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2024-09-26 22:46:16 +0200
committerP-E-P <32375388+P-E-P@users.noreply.github.com>2024-09-26 22:48:32 +0000
commitd87b067b2d2ce5f904cd0d1143a8920a686d0e36 (patch)
treebcdf407cf9fd6a19477ff1647e05935cf8d3ae6e /gcc
parent5257adfe812c513259bc2318f5f82dd978022629 (diff)
downloadgcc-d87b067b2d2ce5f904cd0d1143a8920a686d0e36.zip
gcc-d87b067b2d2ce5f904cd0d1143a8920a686d0e36.tar.gz
gcc-d87b067b2d2ce5f904cd0d1143a8920a686d0e36.tar.bz2
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>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/ast/rust-ast.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h
index dc0fd8b..35f27e3 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 ()) {}