]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Replace default argument with UNDEF_LOCATION
authorOwen Avery <powerboat9.gamer@gmail.com>
Tue, 18 Jul 2023 19:55:51 +0000 (15:55 -0400)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:55:57 +0000 (18:55 +0100)
gcc/rust/ChangeLog:

* ast/rust-ast-collector.h
(TokenCollector::visit):
Replace default argument with UNDEF_LOCATION.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/ast/rust-ast-collector.h

index 0001c5bbef8e8067a07a8cc752e73a8099da1ecc..792f8bed723feef2dded31a89ab404963815432f 100644 (file)
@@ -160,7 +160,7 @@ public:
   void visit (Visitable &v);
   void visit (LoopLabel &label);
 
-  void visit (Literal &lit, Location locus = {});
+  void visit (Literal &lit, Location locus = UNDEF_LOCATION);
 
   void visit (FunctionParam &param);
   void visit (Attribute &attrib);