Commit 502d58a6 by Steve Chamberlain

(convert_to_pointer): Fix typo comparing size of integer and pointers.

From-SVN: r3651
parent ab8ab9d0
...@@ -56,7 +56,9 @@ convert_to_pointer (type, expr) ...@@ -56,7 +56,9 @@ convert_to_pointer (type, expr)
if (type_precision (intype) == POINTER_SIZE) if (type_precision (intype) == POINTER_SIZE)
return build1 (CONVERT_EXPR, type, expr); return build1 (CONVERT_EXPR, type, expr);
expr = convert (type_for_size (POINTER_SIZE, 0), expr); expr = convert (type_for_size (POINTER_SIZE, 0), expr);
if (TYPE_MODE (TREE_TYPE (expr)) != TYPE_MODE (type)) /* Modes may be different but sizes should be the same. */
if (GET_MODE_SIZE (TYPE_MODE (TREE_TYPE (expr)))
!= GET_MODE_SIZE (TYPE_MODE (type)))
/* There is supposed to be some integral type /* There is supposed to be some integral type
that is the same width as a pointer. */ that is the same width as a pointer. */
abort (); abort ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment