aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/GCCLibraries
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-10 22:55:55 +0000
committerChris Lattner <sabre@nondot.org>2003-10-10 22:55:55 +0000
commit4dd7b4fbcae838866c9668571909aef1eaf29830 (patch)
tree94fc2e6f665f321be884df09a56145513ac1519b /runtime/GCCLibraries
parentbe7f4afe47ef87f2f6b054ea472d03719c5eb22e (diff)
downloadexternal_llvm-4dd7b4fbcae838866c9668571909aef1eaf29830.zip
external_llvm-4dd7b4fbcae838866c9668571909aef1eaf29830.tar.gz
external_llvm-4dd7b4fbcae838866c9668571909aef1eaf29830.tar.bz2
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
Diffstat (limited to 'runtime/GCCLibraries')
-rw-r--r--runtime/GCCLibraries/crtend/C++-Exception.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/GCCLibraries/crtend/C++-Exception.cpp b/runtime/GCCLibraries/crtend/C++-Exception.cpp
index ad9f7a5..ce7f0d4 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