[committed] Cleanup of a merge mistake in fold-const.c

Bernd Edlinger bernd.edlinger@hotmail.de
Tue Nov 3 14:38:29 GMT 2020


Hi,


this removes a duplicated statement, in fold-const.c in function getbyterep:

The comment, "Ideally this would turn into a gcc_checking_assert over time."
and the following if-statement are duplicated so one of them can be removed:

  if (init_bytes > array_size)
    init_bytes = array_size;


This happened due to a merge conflict a long time ago.

Bootstrapped and regtested on x86_64-pc-linux-gnu.

I think this qualifies as obvious, so I will commit it now.


Thanks
Bernd.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Cleanup-of-a-merge-mistake-in-fold-const.c.patch
Type: text/x-patch
Size: 1142 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20201103/f74776ce/attachment.bin>


More information about the Gcc-patches mailing list