[llvm-commits] CVS: llvm/runtime/GCCLibraries/crtend/C++-Exception.cpp

Chris Lattner lattner at cs.uiuc.edu
Fri Oct 10 17:57:01 PDT 2003


Changes in directory llvm/runtime/GCCLibraries/crtend:

C++-Exception.cpp updated: 1.10 -> 1.11

---
Log message:

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.



---
Diffs of the changes:  (+1 -1)

Index: llvm/runtime/GCCLibraries/crtend/C++-Exception.cpp
diff -u llvm/runtime/GCCLibraries/crtend/C++-Exception.cpp:1.10 llvm/runtime/GCCLibraries/crtend/C++-Exception.cpp:1.11
--- llvm/runtime/GCCLibraries/crtend/C++-Exception.cpp:1.10	Fri Oct 10 13:46:52 2003
+++ llvm/runtime/GCCLibraries/crtend/C++-Exception.cpp	Fri Oct 10 17:55:55 2003
@@ -71,7 +71,7 @@
   
   // 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





More information about the llvm-commits mailing list