diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2000-03-08 17:16:17 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2000-03-08 17:16:17 +0000 |
commit | 99f80c8bcd47e068459c2cbf45988a568f28196a (patch) | |
tree | f0fa10f04100095c3b66778bca9d2bfab364c754 /gcc | |
parent | 532f12a24c31494543c104af9fa13f23f7633955 (diff) | |
download | gcc-99f80c8bcd47e068459c2cbf45988a568f28196a.zip gcc-99f80c8bcd47e068459c2cbf45988a568f28196a.tar.gz gcc-99f80c8bcd47e068459c2cbf45988a568f28196a.tar.bz2 |
* exception.cc (__cp_pop_exception): Cleanup the original object.
From-SVN: r32426
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/exception.cc | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index fcf4875..e6d2e99 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,9 @@ 2000-03-08 Nathan Sidwell <nathan@codesourcery.com> + * exception.cc (__cp_pop_exception): Cleanup the original object. + +2000-03-08 Nathan Sidwell <nathan@codesourcery.com> + * decl.c (grok_op_properties): Merge conversion to void warning with other silly op warnings. diff --git a/gcc/cp/exception.cc b/gcc/cp/exception.cc index e350e63..d6b47d9 100644 --- a/gcc/cp/exception.cc +++ b/gcc/cp/exception.cc @@ -252,10 +252,10 @@ __cp_pop_exception (cp_eh_info *p) if (p->cleanup) /* 2 is a magic value for destructors; see build_delete(). */ - p->cleanup (p->value, 2); + p->cleanup (p->original_value, 2); // value may have been adjusted. if (! __is_pointer (p->type)) - __eh_free (p->original_value); // value may have been co-erced. + __eh_free (p->original_value); // value may have been adjusted. __eh_free (p); } |