diff options
author | Donn Terry <donn@interix.com> | 1999-04-26 00:39:01 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1999-04-25 18:39:01 -0600 |
commit | ab40f612254bcfadf24f4eed82aabc17fdb86cd1 (patch) | |
tree | 8cdab521f075debcecb7693f7d03aa8163fb7c5b /gcc/expr.c | |
parent | e03ec28f6eae9b81909b1324d7d61113b2e67b95 (diff) | |
download | gcc-ab40f612254bcfadf24f4eed82aabc17fdb86cd1.zip gcc-ab40f612254bcfadf24f4eed82aabc17fdb86cd1.tar.gz gcc-ab40f612254bcfadf24f4eed82aabc17fdb86cd1.tar.bz2 |
* expr.c (expand_assignment): Improve test for pointer type.
From-SVN: r26634
Diffstat (limited to 'gcc/expr.c')
-rw-r--r-- | gcc/expr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3395,8 +3395,8 @@ expand_assignment (to, from, want_value, suggest_reg) else { #ifdef POINTERS_EXTEND_UNSIGNED - if (TREE_CODE (to) == REFERENCE_TYPE - || TREE_CODE (to) == POINTER_TYPE) + if (TREE_CODE (TREE_TYPE (to)) == REFERENCE_TYPE + || TREE_CODE (TREE_TYPE (to)) == POINTER_TYPE) value = convert_memory_address (GET_MODE (to_rtx), value); #endif emit_move_insn (to_rtx, value); |