diff options
author | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-12 21:56:12 +0000 |
---|---|---|
committer | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-12 21:56:12 +0000 |
commit | f8494ea3adf0332b5ae3650314dd3b9adb0eb40a (patch) | |
tree | e514ce3f0e370009d38ad96a7e1a8faf711baef9 /gcc/lambda-code.c | |
parent | 021d874e66c98f2b56e84625e7ddf89b60c7ab1f (diff) | |
download | gcc-f8494ea3adf0332b5ae3650314dd3b9adb0eb40a.tar.gz |
PR tree-optimization/30835
* lambda-code.c (can_convert_to_perfect_nest): Check whether
bb_for_stmt is not NULL before accessing it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122866 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lambda-code.c')
-rw-r--r-- | gcc/lambda-code.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/lambda-code.c b/gcc/lambda-code.c index d7632665fb5..487c6468de7 100644 --- a/gcc/lambda-code.c +++ b/gcc/lambda-code.c @@ -2363,8 +2363,9 @@ can_convert_to_perfect_nest (struct loop *loop) { tree arg_stmt = SSA_NAME_DEF_STMT (arg); - if (bb_for_stmt (arg_stmt)->loop_father - == loop->inner) + if (bb_for_stmt (arg_stmt) + && (bb_for_stmt (arg_stmt)->loop_father + == loop->inner)) goto fail; } } |