aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/expr.c
diff options
context:
space:
mode:
authorAndrew Haley <aph@redhat.com>2005-07-28 15:00:53 +0000
committerAndrew Haley <aph@gcc.gnu.org>2005-07-28 15:00:53 +0000
commitc6e5d1af3f58d3426d92abec7818dd25871aba1b (patch)
treefc6869a69efca7c578b11f3952502d84a771535a /gcc/java/expr.c
parent9603f2d849b267a4414546c8732f9d023f3849ee (diff)
downloadgcc-c6e5d1af3f58d3426d92abec7818dd25871aba1b.zip
gcc-c6e5d1af3f58d3426d92abec7818dd25871aba1b.tar.gz
gcc-c6e5d1af3f58d3426d92abec7818dd25871aba1b.tar.bz2
expr.c (expand_load_internal): Convert to destination type.
2005-07-15 Andrew Haley <aph@redhat.com> * expr.c (expand_load_internal): Convert to destination type. From-SVN: r102485
Diffstat (limited to 'gcc/java/expr.c')
-rw-r--r--gcc/java/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/java/expr.c b/gcc/java/expr.c
index f3f4c84..5c5a56c 100644
--- a/gcc/java/expr.c
+++ b/gcc/java/expr.c
@@ -1321,7 +1321,7 @@ expand_load_internal (int index, tree type, int pc)
value into it. Then we push this new local on the stack.
Hopefully this all gets optimized out. */
copy = build_decl (VAR_DECL, NULL_TREE, type);
- if (INTEGRAL_TYPE_P (type)
+ if (INTEGRAL_TYPE_P (type) || POINTER_TYPE_P (type)
&& TREE_TYPE (copy) != TREE_TYPE (var))
var = convert (type, var);
java_add_local_var (copy);