diff options
| author | Mike Stump <mrs@apple.com> | 2009-12-02 18:20:18 +0000 |
|---|---|---|
| committer | Mike Stump <mrs@apple.com> | 2009-12-02 18:20:18 +0000 |
| commit | a9a590cd1259016fe267d80c3aae6e50b856eec4 (patch) | |
| tree | bfd1c5fc3bb66a4df45d6eddfa5be0642ed1b1e2 /clang/lib/CodeGen | |
| parent | 407e2124bf2d692fb147e111f668f6869ae19990 (diff) | |
| download | bcm5719-llvm-a9a590cd1259016fe267d80c3aae6e50b856eec4.tar.gz bcm5719-llvm-a9a590cd1259016fe267d80c3aae6e50b856eec4.zip | |
Avoid warning for getTerminateFn defined but not used.
llvm-svn: 90330
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/CGException.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp index c93f2b7b120..9aa6382ac52 100644 --- a/clang/lib/CodeGen/CGException.cpp +++ b/clang/lib/CodeGen/CGException.cpp @@ -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 } |

