diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-03-19 13:12:20 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-08-01 13:12:15 +0200 |
commit | f15d40d237f8dd248241df8ee324eb0e7cb825a5 (patch) | |
tree | 8c00f1ba6c50e29272da1c876e432c0367245eed /gcc | |
parent | e01c9f40c13baf47f9404ae3068289688fe3499e (diff) | |
download | gcc-f15d40d237f8dd248241df8ee324eb0e7cb825a5.zip gcc-f15d40d237f8dd248241df8ee324eb0e7cb825a5.tar.gz gcc-f15d40d237f8dd248241df8ee324eb0e7cb825a5.tar.bz2 |
gccrs: macro: Use MacroInvocation's node_id in ExternalItem constructor.
gcc/rust/ChangeLog:
* ast/rust-macro.h: Use proper node id instead of the one in the base
Expr class - which is uninitialized.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/ast/rust-macro.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/ast/rust-macro.h b/gcc/rust/ast/rust-macro.h index 5b9ff3f..507e595 100644 --- a/gcc/rust/ast/rust-macro.h +++ b/gcc/rust/ast/rust-macro.h @@ -727,7 +727,7 @@ private: {} MacroInvocation (const MacroInvocation &other) - : TraitItem (other.locus), ExternalItem (Expr::node_id), + : TraitItem (other.locus), ExternalItem (other.node_id), outer_attrs (other.outer_attrs), locus (other.locus), node_id (other.node_id), invoc_data (other.invoc_data), is_semi_coloned (other.is_semi_coloned), kind (other.kind), |