diff options
Diffstat (limited to 'gcc/tree-data-ref.h')
-rw-r--r-- | gcc/tree-data-ref.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/tree-data-ref.h b/gcc/tree-data-ref.h index 41a20d7..efce845 100644 --- a/gcc/tree-data-ref.h +++ b/gcc/tree-data-ref.h @@ -618,9 +618,10 @@ bool stmt_with_adjacent_zero_store_dr_p (gimple); static inline bool stride_of_unit_type_p (tree stride, tree type) { - return tree_int_cst_equal (fold_unary (ABS_EXPR, TREE_TYPE (stride), - stride), - TYPE_SIZE_UNIT (type)); + return (TREE_CODE (stride) == INTEGER_CST + && tree_int_cst_equal (fold_unary (ABS_EXPR, TREE_TYPE (stride), + stride), + TYPE_SIZE_UNIT (type))); } /* Determines whether RDG vertices V1 and V2 access to similar memory |