diff options
author | thopre01 <thopre01@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-06-10 02:10:46 +0000 |
---|---|---|
committer | thopre01 <thopre01@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-06-10 02:10:46 +0000 |
commit | 935abe571282468ff1e9fcd7b3ae72deda2ac55d (patch) | |
tree | f5ef35ac6a895c511f86a49b87b3cbcca571331a /gcc/tree-ssa-math-opts.c | |
parent | a1032d45752b8ff864201ca3ad0b7e289ec4e904 (diff) | |
download | gcc-935abe571282468ff1e9fcd7b3ae72deda2ac55d.tar.gz |
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 ().
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211395 138bc75d-0d04-0410-961f-82ee72b054a4
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 a928ad926bb..1f011a6f937 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; |