diff options
author | Philip Herron <herron.philip@googlemail.com> | 2023-03-03 17:59:00 +0000 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:21:07 +0100 |
commit | 10c4a2ce03c99c1394e9d610c0f38ce990284181 (patch) | |
tree | 56efce20986173626f3e5a039ba844674cb325c7 /gcc | |
parent | cb64096940cca23dd63f49315fdc1fef7e94b569 (diff) | |
download | gcc-10c4a2ce03c99c1394e9d610c0f38ce990284181.zip gcc-10c4a2ce03c99c1394e9d610c0f38ce990284181.tar.gz gcc-10c4a2ce03c99c1394e9d610c0f38ce990284181.tar.bz2 |
gccrs: Add missing node_id copys in the copy constructors
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
gcc/rust/ChangeLog:
* ast/rust-path.h: add missing copy for node_id
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/ast/rust-path.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-path.h b/gcc/rust/ast/rust-path.h index 84c64b24..0b9c280 100644 --- a/gcc/rust/ast/rust-path.h +++ b/gcc/rust/ast/rust-path.h @@ -1046,6 +1046,7 @@ public: : has_opening_scope_resolution (other.has_opening_scope_resolution), locus (other.locus) { + node_id = other.node_id; segments.reserve (other.segments.size ()); for (const auto &e : other.segments) segments.push_back (e->clone_type_path_segment ()); @@ -1054,6 +1055,7 @@ public: // Overloaded assignment operator with clone TypePath &operator= (TypePath const &other) { + node_id = other.node_id; has_opening_scope_resolution = other.has_opening_scope_resolution; locus = other.locus; |