Fix ubsan in gimple-fold.c (PR tree-optimization/82491).
authorMartin Liska <mliska@suse.cz>
Mon, 19 Feb 2018 18:29:52 +0000 (19:29 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 19 Feb 2018 18:29:52 +0000 (18:29 +0000)
commit6a5aca53278dd43bea2618126f282125c5ca3e02
tree0faf090d04bbffe5e6dd904eeb72d6e34234cb3e
parenta197d3406c4c2c472b8f38fb5de2bdc4e3db9476
Fix ubsan in gimple-fold.c (PR tree-optimization/82491).

2018-02-19  Martin Liska  <mliska@suse.cz>
    Richard Sandiford  <richard.sandiford@linaro.org>

PR tree-optimization/82491
* gimple-fold.c (get_base_constructor): Make earlier bail out
to prevent ubsan.

Co-Authored-By: Richard Sandiford <richard.sandiford@linaro.org>
From-SVN: r257816
gcc/ChangeLog
gcc/gimple-fold.c