aboutsummaryrefslogtreecommitdiff
path: root/gcc/stor-layout.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2004-12-18 12:19:37 -0800
committerRichard Henderson <rth@gcc.gnu.org>2004-12-18 12:19:37 -0800
commitf54ff900373c7406b665588b2af845868b4a1872 (patch)
treea466675a3afaa3095c3cb6bc5a6e7dd55509d986 /gcc/stor-layout.c
parent6b9b7b4cf82a02fd22c8f2d7d6843287577ee6ba (diff)
downloadgcc-f54ff900373c7406b665588b2af845868b4a1872.zip
gcc-f54ff900373c7406b665588b2af845868b4a1872.tar.gz
gcc-f54ff900373c7406b665588b2af845868b4a1872.tar.bz2
* stor-layout.c (layout_decl): Use unshare_expr, not unsave_expr.
From-SVN: r92362
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r--gcc/stor-layout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index b2f73f0..6b78fa6 100644
--- a/gcc/stor-layout.c
+++ b/gcc/stor-layout.c
@@ -325,8 +325,8 @@ layout_decl (tree decl, unsigned int known_align)
if (DECL_SIZE (decl) == 0)
{
- DECL_SIZE (decl) = unsave_expr (TYPE_SIZE (type));
- DECL_SIZE_UNIT (decl) = unsave_expr (TYPE_SIZE_UNIT (type));
+ DECL_SIZE (decl) = unshare_expr (TYPE_SIZE (type));
+ DECL_SIZE_UNIT (decl) = unshare_expr (TYPE_SIZE_UNIT (type));
}
else if (DECL_SIZE_UNIT (decl) == 0)
DECL_SIZE_UNIT (decl)