diff options
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r-- | gcc/tree-cfg.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index 8e889fa..e70b440 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -3574,8 +3574,10 @@ verify_gimple_expr (tree expr) return true; } - /* Allow conversions between integral types. */ - if (INTEGRAL_TYPE_P (type) == INTEGRAL_TYPE_P (TREE_TYPE (op))) + /* Allow conversions between integral types and between + pointer types. */ + if ((INTEGRAL_TYPE_P (type) && INTEGRAL_TYPE_P (TREE_TYPE (op))) + || (POINTER_TYPE_P (type) && POINTER_TYPE_P (TREE_TYPE (op)))) return false; /* Allow conversions between integral types and pointers only if |