From 6ff95a6eefbe02288fbc9f3de456e5e820d2bd80 Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Tue, 3 Nov 2020 14:20:14 +0100 Subject: [PATCH] Cleanup of a merge mistake in fold-const.c This removes a duplicated statement. It was apparently introduced due to a merge mistake. 2020-11-03 Bernd Edlinger * fold-const.c (getbyterep): Remove duplicated statement. --- gcc/fold-const.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/gcc/fold-const.c b/gcc/fold-const.c index ebd32bb2e04..c47557daeba 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -15565,11 +15565,6 @@ getbyterep (tree src, unsigned HOST_WIDE_INT *strsize) is equal to strlen (A) + 1. */ const unsigned HOST_WIDE_INT array_size = tree_to_uhwi (mem_size); unsigned HOST_WIDE_INT init_bytes = TREE_STRING_LENGTH (src); - - /* Ideally this would turn into a gcc_checking_assert over time. */ - if (init_bytes > array_size) - init_bytes = array_size; - const char *string = TREE_STRING_POINTER (src); /* Ideally this would turn into a gcc_checking_assert over time. */ -- 2.30.2