aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-struct-reorg.c
diff options
context:
space:
mode:
authorAndreas Krebbel <krebbel1@de.ibm.com>2008-01-23 16:41:30 +0000
committerAndreas Krebbel <krebbel@gcc.gnu.org>2008-01-23 16:41:30 +0000
commit1b7af7b04cee6a97cdf17b3e585279608db60c0d (patch)
tree85ed4b293f3c86535daab6bec2ccb0a7dd2bc1a6 /gcc/ipa-struct-reorg.c
parent19298da4bd20b37a703a84239c52f8bb13ce7b3c (diff)
downloadgcc-1b7af7b04cee6a97cdf17b3e585279608db60c0d.zip
gcc-1b7af7b04cee6a97cdf17b3e585279608db60c0d.tar.gz
gcc-1b7af7b04cee6a97cdf17b3e585279608db60c0d.tar.bz2
ipa-struct-reorg.c (create_new_malloc): Use pointer type as malloc result type.
2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com> * ipa-struct-reorg.c (create_new_malloc): Use pointer type as malloc result type. From-SVN: r131760
Diffstat (limited to 'gcc/ipa-struct-reorg.c')
-rw-r--r--gcc/ipa-struct-reorg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-struct-reorg.c b/gcc/ipa-struct-reorg.c
index 0619576..3c90f44 100644
--- a/gcc/ipa-struct-reorg.c
+++ b/gcc/ipa-struct-reorg.c
@@ -1735,7 +1735,7 @@ create_new_malloc (tree malloc_stmt, tree new_type, tree *new_stmts, tree num)
append_to_statement_list (new_stmt, new_stmts);
/* Generate new call for malloc. */
- malloc_res = create_tmp_var (integer_type_node, NULL);
+ malloc_res = create_tmp_var (ptr_type_node, NULL);
if (malloc_res)
add_referenced_var (malloc_res);