diff options
author | David Blaikie <dblaikie@gmail.com> | 2011-09-23 20:26:49 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2011-09-23 20:26:49 +0000 |
commit | aa347f9392f8c5333eb2b889716d64a50805813d (patch) | |
tree | ef1e1f14dc42d81abd2152c527b93571f95a1ccd /clang/lib/CodeGen/CGExprConstant.cpp | |
parent | b1fa14883755af470c8b3ffab3aedb477a899854 (diff) | |
download | bcm5719-llvm-aa347f9392f8c5333eb2b889716d64a50805813d.tar.gz bcm5719-llvm-aa347f9392f8c5333eb2b889716d64a50805813d.zip |
Removing a bunch of dead returns/breaks after llvm_unreachables.
llvm-svn: 140407
Diffstat (limited to 'clang/lib/CodeGen/CGExprConstant.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGExprConstant.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGExprConstant.cpp b/clang/lib/CodeGen/CGExprConstant.cpp index 2de13a4090d..1176eb1f9bf 100644 --- a/clang/lib/CodeGen/CGExprConstant.cpp +++ b/clang/lib/CodeGen/CGExprConstant.cpp @@ -781,9 +781,6 @@ public: return 0; llvm_unreachable("Unable to handle InitListExpr"); - // Get rid of control reaches end of void function warning. - // Not reached. - return 0; } llvm::Constant *VisitCXXConstructExpr(CXXConstructExpr *E) { @@ -967,7 +964,6 @@ llvm::Constant *CodeGenModule::EmitConstantExpr(const Expr *E, switch (Result.Val.getKind()) { case APValue::Uninitialized: llvm_unreachable("Constant expressions should be initialized."); - return 0; case APValue::LValue: { llvm::Type *DestTy = getTypes().ConvertTypeForMem(DestType); llvm::Constant *Offset = |