]> granicus.if.org Git - clang/commitdiff
Fix typo so we don't use the wrong function for ending ObjC++ catch blocks (GNU runtimes)
authorDavid Chisnall <csdavec@swan.ac.uk>
Mon, 8 Aug 2011 17:26:06 +0000 (17:26 +0000)
committerDavid Chisnall <csdavec@swan.ac.uk>
Mon, 8 Aug 2011 17:26:06 +0000 (17:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137052 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGObjCGNU.cpp

index ae8a8dd58f5c6c277a29eda5b6e37833f45a2609..98f5d18c75f1a2c5bef93da8d9e3330355ddea86 100644 (file)
@@ -621,7 +621,7 @@ class CGObjCGNUstep : public CGObjCGNU {
         // void *__cxa_begin_catch(void *e)
         EnterCatchFn.init(&CGM, "__cxa_begin_catch", PtrTy, PtrTy, NULL);
         // void __cxa_end_catch(void)
-        EnterCatchFn.init(&CGM, "__cxa_end_catch", VoidTy, NULL);
+        ExitCatchFn.init(&CGM, "__cxa_end_catch", VoidTy, NULL);
         // void _Unwind_Resume_or_Rethrow(void*)
         ExceptionReThrowFn.init(&CGM, "_Unwind_Resume_or_Rethrow", VoidTy, PtrTy, NULL);
       }