diff options
Diffstat (limited to 'gcc/tree-data-ref.c')
-rw-r--r-- | gcc/tree-data-ref.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-data-ref.c b/gcc/tree-data-ref.c index 0917d6d..b163eaf 100644 --- a/gcc/tree-data-ref.c +++ b/gcc/tree-data-ref.c @@ -5454,6 +5454,8 @@ static tree dr_step_indicator (struct data_reference *dr, int useful_min) { tree step = DR_STEP (dr); + if (!step) + return NULL_TREE; STRIP_NOPS (step); /* Look for cases where the step is scaled by a positive constant integer, which will often be the access size. If the multiplication |