OSDN Git Service

* exception.cc (__cp_pop_exception): Cleanup the original object.
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Mar 2000 17:16:17 +0000 (17:16 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Mar 2000 17:16:17 +0000 (17:16 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32426 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/exception.cc

index fcf4875..e6d2e99 100644 (file)
@@ -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.
 
index e350e63..d6b47d9 100644 (file)
@@ -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);
 }