diff options
author | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | 2000-04-10 11:59:46 +0000 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2000-04-10 07:59:46 -0400 |
commit | 98d64f692f4119a8d93cc49cc2d63976298a47f8 (patch) | |
tree | 18819ebfa553bae0c1f828feced6ab14c1598f05 /gcc/c-convert.c | |
parent | 29105cea6a1c86b7fcaa96cb78a6d948b32564be (diff) | |
download | gcc-98d64f692f4119a8d93cc49cc2d63976298a47f8.tar.gz |
c-convert.c (convert): Handle REFERENCE_TYPE like POINTER_TYPE.
* c-convert.c (convert): Handle REFERENCE_TYPE like POINTER_TYPE.
* c-typeck.c (convert_for_assignment): Likewise.
From-SVN: r33058
Diffstat (limited to 'gcc/c-convert.c')
-rw-r--r-- | gcc/c-convert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-convert.c b/gcc/c-convert.c index b3b144d6a8b..8dc85509d74 100644 --- a/gcc/c-convert.c +++ b/gcc/c-convert.c @@ -88,7 +88,7 @@ convert (type, expr) #endif if (code == INTEGER_TYPE || code == ENUMERAL_TYPE) return fold (convert_to_integer (type, e)); - if (code == POINTER_TYPE) + if (code == POINTER_TYPE || code == REFERENCE_TYPE) return fold (convert_to_pointer (type, e)); if (code == REAL_TYPE) return fold (convert_to_real (type, e)); |