summaryrefslogtreecommitdiffstats
path: root/gcc/java/expr.c
diff options
context:
space:
mode:
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>2005-07-28 15:00:53 +0000
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>2005-07-28 15:00:53 +0000
commit7424ad4c7476a219258940957081445672cf802e (patch)
treefc6869a69efca7c578b11f3952502d84a771535a /gcc/java/expr.c
parent4dc0452efcf87eb8c79c4ccf3ef0ebf3c1029ff9 (diff)
downloadppe42-gcc-7424ad4c7476a219258940957081445672cf802e.tar.gz
ppe42-gcc-7424ad4c7476a219258940957081445672cf802e.zip
2005-07-15 Andrew Haley <aph@redhat.com>
* expr.c (expand_load_internal): Convert to destination type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102485 138bc75d-0d04-0410-961f-82ee72b054a4
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 f3f4c84fdb3..5c5a56ca9c4 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);
OpenPOWER on IntegriCloud