diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-01-20 21:50:17 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-01-20 21:50:17 +0000 |
commit | e4d798f07897a6378d0f2588e4c2335ec85ca935 (patch) | |
tree | 6f31c0fc2740ae77aa711c1f9da94a19d825af98 /clang/lib/AST/ExprClassification.cpp | |
parent | f2a2f5f2bfe9da1a3e0a25934d833956b04bb8a5 (diff) | |
download | bcm5719-llvm-e4d798f07897a6378d0f2588e4c2335ec85ca935.tar.gz bcm5719-llvm-e4d798f07897a6378d0f2588e4c2335ec85ca935.zip |
More dead code removal (using -Wunreachable-code)
llvm-svn: 148577
Diffstat (limited to 'clang/lib/AST/ExprClassification.cpp')
-rw-r--r-- | clang/lib/AST/ExprClassification.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/lib/AST/ExprClassification.cpp b/clang/lib/AST/ExprClassification.cpp index 60e6f96c963..311b8054714 100644 --- a/clang/lib/AST/ExprClassification.cpp +++ b/clang/lib/AST/ExprClassification.cpp @@ -47,7 +47,6 @@ static Cl::Kinds ClassifyExprValueKind(const LangOptions &Lang, return Cl::CL_XValue; } llvm_unreachable("Invalid value category of implicit cast."); - return Cl::CL_PRValue; } Cl Expr::ClassifyImpl(ASTContext &Ctx, SourceLocation *Loc) const { @@ -99,7 +98,6 @@ static Cl::Kinds ClassifyInternal(ASTContext &Ctx, const Expr *E) { #define EXPR(Kind, Base) #include "clang/AST/StmtNodes.inc" llvm_unreachable("cannot classify a statement"); - break; // First come the expressions that are always lvalues, unconditionally. case Expr::ObjCIsaExprClass: @@ -371,7 +369,6 @@ static Cl::Kinds ClassifyInternal(ASTContext &Ctx, const Expr *E) { } llvm_unreachable("unhandled expression kind in classification"); - return Cl::CL_LValue; } /// ClassifyDecl - Return the classification of an expression referencing the |