diff options
author | Thomas Preud'homme <thomas.preudhomme@arm.com> | 2014-06-10 02:10:46 +0000 |
---|---|---|
committer | Thomas Preud'homme <thopre01@gcc.gnu.org> | 2014-06-10 02:10:46 +0000 |
commit | 2cfa504a0899b31068b37c5ab4bcaaed5c6973d5 (patch) | |
tree | f5ef35ac6a895c511f86a49b87b3cbcca571331a /gcc/tree-ssa-math-opts.c | |
parent | 816002df70d65b79158d45d5c690a4d7e061da03 (diff) | |
download | gcc-2cfa504a0899b31068b37c5ab4bcaaed5c6973d5.zip gcc-2cfa504a0899b31068b37c5ab4bcaaed5c6973d5.tar.gz gcc-2cfa504a0899b31068b37c5ab4bcaaed5c6973d5.tar.bz2 |
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
Diffstat (limited to 'gcc/tree-ssa-math-opts.c')
-rw-r--r-- | gcc/tree-ssa-math-opts.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-ssa-math-opts.c b/gcc/tree-ssa-math-opts.c index a928ad9..1f011a6 100644 --- a/gcc/tree-ssa-math-opts.c +++ b/gcc/tree-ssa-math-opts.c @@ -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; |