diff options
| author | Anders Carlsson <andersca@mac.com> | 2011-02-19 21:53:09 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2011-02-19 21:53:09 +0000 |
| commit | b94ad3ec2248077fa42355e658df0f92ae64fb25 (patch) | |
| tree | 0c6d17eb804ad77b952e2cf4d3ce7802e97a05db /clang/lib/Sema/SemaExprCXX.cpp | |
| parent | d4f34d840eac554705d6b9fdb59ffe5592a93c91 (diff) | |
| download | bcm5719-llvm-b94ad3ec2248077fa42355e658df0f92ae64fb25.tar.gz bcm5719-llvm-b94ad3ec2248077fa42355e658df0f92ae64fb25.zip | |
There's no need to return early if we encounter a try/throw and exceptions are disabled.
llvm-svn: 126053
Diffstat (limited to 'clang/lib/Sema/SemaExprCXX.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaExprCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp index 07e6b6f14b1..0d48741387a 100644 --- a/clang/lib/Sema/SemaExprCXX.cpp +++ b/clang/lib/Sema/SemaExprCXX.cpp @@ -477,7 +477,7 @@ Sema::ActOnCXXNullPtrLiteral(SourceLocation Loc) { ExprResult Sema::ActOnCXXThrow(SourceLocation OpLoc, Expr *Ex) { if (!getLangOptions().Exceptions) - return Diag(OpLoc, diag::err_exceptions_disabled) << "throw"; + Diag(OpLoc, diag::err_exceptions_disabled) << "throw"; if (Ex && !Ex->isTypeDependent() && CheckCXXThrowOperand(OpLoc, Ex)) return ExprError(); |

