diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-03-19 13:12:20 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-03-19 13:15:24 +0100 |
commit | adb56ef014effb17af27ab7baf0d87bc8bc48a0c (patch) | |
tree | 8b379c87d9ae19593fbe581b505e0e4f0a7a9fcf /gcc | |
parent | ebc1fc6853b7673b7301d88f4075bc2db3468643 (diff) | |
download | gcc-adb56ef014effb17af27ab7baf0d87bc8bc48a0c.zip gcc-adb56ef014effb17af27ab7baf0d87bc8bc48a0c.tar.gz gcc-adb56ef014effb17af27ab7baf0d87bc8bc48a0c.tar.bz2 |
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), |