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.
This commit is contained in:
parent
e01c9f40c1
commit
f15d40d237
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Reference in a new issue