tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of init_symbolic_number ().

2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    gcc/
    * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
    init_symbolic_number ().

From-SVN: r211395
This commit is contained in:
Thomas Preud'homme 2014-06-10 02:10:46 +00:00 committed by Thomas Preud'homme
parent 816002df70
commit 2cfa504a08
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
* tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
init_symbolic_number ().
2014-05-18 John David Anglin <danglin@gcc.gnu.org>
PR middle-end/61141

View File

@ -1784,7 +1784,8 @@ find_bswap_or_nop_load (gimple stmt, tree ref, struct symbolic_number *n)
if (bitsize % BITS_PER_UNIT)
return false;
init_symbolic_number (n, ref);
if (!init_symbolic_number (n, ref))
return false;
n->base_addr = base_addr;
n->offset = offset;
n->bytepos = bitpos / BITS_PER_UNIT;