From 4dd7b4fbcae838866c9668571909aef1eaf29830 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 10 Oct 2003 22:55:55 +0000 Subject: [PATCH] Actually pass in a pointer to the thrown object, not a pointer to the 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/GCCLibraries/crtend/C++-Exception.cpp b/runtime/GCCLibraries/crtend/C++-Exception.cpp index ad9f7a53e51..ce7f0d4fd0b 100644 --- a/runtime/GCCLibraries/crtend/C++-Exception.cpp +++ b/runtime/GCCLibraries/crtend/C++-Exception.cpp @@ -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 -- 2.34.1