]> granicus.if.org Git - clang/commitdiff
Avoid warning for getTerminateFn defined but not used.
authorMike Stump <mrs@apple.com>
Wed, 2 Dec 2009 18:20:18 +0000 (18:20 +0000)
committerMike Stump <mrs@apple.com>
Wed, 2 Dec 2009 18:20:18 +0000 (18:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90330 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGException.cpp

index c93f2b7b120861fbed6f96968bf20daff349c4fe..9aa6382ac52a6ce515e809bb22e4e939575bcdb2 100644 (file)
@@ -253,15 +253,10 @@ void CodeGenFunction::EmitCXXThrowExpr(const CXXThrowExpr *E) {
 }
 
 void CodeGenFunction::EmitCXXTryStmt(const CXXTryStmt &S) {
-#if 1
-  EmitStmt(S.getTryBlock());
-  if (0) {
-    getBeginCatchFn(*this);
-    getEndCatchFn(*this);
-    getUnwindResumeOrRethrowFn(*this);
-    CopyObject(*this, QualType(), 0, 0);
+  if (1) {
+    EmitStmt(S.getTryBlock());
+    return;
   }
-#else
   // FIXME: The below is still just a sketch of the code we need.
   // Pointer to the personality function
   llvm::Constant *Personality =
@@ -473,5 +468,4 @@ void CodeGenFunction::EmitCXXTryStmt(const CXXTryStmt &S) {
   Builder.CreateUnreachable();
 
   EmitBlock(FinallyEnd);
-#endif
 }