summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-math-opts.c
diff options
context:
space:
mode:
authorthopre01 <thopre01@138bc75d-0d04-0410-961f-82ee72b054a4>2014-06-10 02:10:46 +0000
committerthopre01 <thopre01@138bc75d-0d04-0410-961f-82ee72b054a4>2014-06-10 02:10:46 +0000
commit935abe571282468ff1e9fcd7b3ae72deda2ac55d (patch)
treef5ef35ac6a895c511f86a49b87b3cbcca571331a /gcc/tree-ssa-math-opts.c
parenta1032d45752b8ff864201ca3ad0b7e289ec4e904 (diff)
downloadgcc-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.c3
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;