aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimplify.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gimplify.h')
-rw-r--r--gcc/gimplify.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimplify.h b/gcc/gimplify.h
index 5d39544..394d385 100644
--- a/gcc/gimplify.h
+++ b/gcc/gimplify.h
@@ -99,7 +99,7 @@ is_gimple_sizepos (tree expr)
but that will cause problems if this type is from outside the function.
It's OK to have that here. */
return (expr == NULL_TREE
- || TREE_CONSTANT (expr)
+ || TREE_CODE (expr) == INTEGER_CST
|| TREE_CODE (expr) == VAR_DECL
|| CONTAINS_PLACEHOLDER_P (expr));
}