summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/runtime/GCCLibraries/crtend/C++-Exception.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/runtime/GCCLibraries/crtend/C++-Exception.cpp b/llvm/runtime/GCCLibraries/crtend/C++-Exception.cpp
index ad9f7a53e51..ce7f0d4fd0b 100644
--- a/llvm/runtime/GCCLibraries/crtend/C++-Exception.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud