Actually pass in a pointer to the thrown object, not a pointer to the
authorChris Lattner <sabre@nondot.org>
Fri, 10 Oct 2003 22:55:55 +0000 (22:55 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 10 Oct 2003 22:55:55 +0000 (22:55 +0000)
exception header.  This is the final missing piece from the PR#27 puzzle.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9043 91177308-0d34-0410-b5e6-96231b3b80d8

runtime/GCCLibraries/crtend/C++-Exception.cpp

index ad9f7a53e51368d95019f3dab2f96dbcb3f75b4a..ce7f0d4fd0b215f0e0daa72cb6be2f3cfd605d56 100644 (file)
@@ -71,7 +71,7 @@ static void cxx_destructor(llvm_exception *LE) /* might throw */{
   
   // Run the exception object dtor if it exists. */
   if (E->ExceptionObjectDestructor)
-    E->ExceptionObjectDestructor(E);
+    E->ExceptionObjectDestructor(E+1);
 }
 
 // __llvm_cxxeh_throw - Given a pointer to memory which has an exception object