From 7e74b450d24074519c8c93dc55c507931b329c5a Mon Sep 17 00:00:00 2001 From: Owen Avery Date: Tue, 18 Jul 2023 15:55:51 -0400 Subject: gccrs: Replace default argument with UNDEF_LOCATION gcc/rust/ChangeLog: * ast/rust-ast-collector.h (TokenCollector::visit): Replace default argument with UNDEF_LOCATION. Signed-off-by: Owen Avery --- gcc/rust/ast/rust-ast-collector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/rust/ast/rust-ast-collector.h b/gcc/rust/ast/rust-ast-collector.h index 0001c5b..792f8be 100644 --- a/gcc/rust/ast/rust-ast-collector.h +++ b/gcc/rust/ast/rust-ast-collector.h @@ -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 ¶m); void visit (Attribute &attrib); -- cgit v1.1