diff options
Diffstat (limited to 'gcc/graphite-sese-to-poly.c')
-rw-r--r-- | gcc/graphite-sese-to-poly.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c index 0fd6120ced0..09abd5032d7 100644 --- a/gcc/graphite-sese-to-poly.c +++ b/gcc/graphite-sese-to-poly.c @@ -2465,7 +2465,8 @@ rewrite_cross_bb_scalar_deps (sese region, gimple_stmt_iterator *gsi) return false; } - if (!is_gimple_reg (def)) + if (!def + || !is_gimple_reg (def)) return false; if (scev_analyzable_p (def, region)) |