]> gcc.gnu.org Git - gcc.git/commitdiff
gccrs: macro: Use MacroInvocation's node_id in ExternalItem constructor.
authorArthur Cohen <arthur.cohen@embecosm.com>
Tue, 19 Mar 2024 12:12:20 +0000 (13:12 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 1 Aug 2024 11:12:15 +0000 (13:12 +0200)
gcc/rust/ChangeLog:

* ast/rust-macro.h: Use proper node id instead of the one in the base
Expr class - which is uninitialized.

gcc/rust/ast/rust-macro.h

index 5b9ff3f22c88d2bde5edb6f9cb131d7704e85e1a..507e595e3790d5f98bb32e5d7e6444860c4ad0be 100644 (file)
@@ -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),
This page took 0.072546 seconds and 5 git commands to generate.