[committed] Remove stray reference to error_at_rich_loc

David Malcolm dmalcolm@redhat.com
Mon Oct 15 23:22:00 GMT 2018


"error_at_rich_loc" went away in r254280 (in favor of overloading
"error_at"), but there was a stray reference in a comment.

Remove it.

Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu.
Committed to trunk as r265177.

gcc/ChangeLog:
	* gcc-rich-location.h (gcc_rich_location::add_location_if_nearby):
	Fix usage of "error_at_rich_loc" in the comment.
 ---
 gcc/gcc-rich-location.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/gcc-rich-location.h b/gcc/gcc-rich-location.h
index e55dd76..d282fd4 100644
--- a/gcc/gcc-rich-location.h
+++ b/gcc/gcc-rich-location.h
@@ -56,7 +56,7 @@ class gcc_rich_location : public rich_location
 
 	gcc_rich_location richloc (primary_loc);
 	bool added secondary = richloc.add_location_if_nearby (secondary_loc);
-	error_at_rich_loc (&richloc, "main message");
+	error_at (&richloc, "main message");
 	if (!added secondary)
 	  inform (secondary_loc, "message for secondary");
 
-- 
1.8.5.3



More information about the Gcc-patches mailing list