summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprConstant.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2011-09-23 20:26:49 +0000
committerDavid Blaikie <dblaikie@gmail.com>2011-09-23 20:26:49 +0000
commitaa347f9392f8c5333eb2b889716d64a50805813d (patch)
treeef1e1f14dc42d81abd2152c527b93571f95a1ccd /clang/lib/CodeGen/CGExprConstant.cpp
parentb1fa14883755af470c8b3ffab3aedb477a899854 (diff)
downloadbcm5719-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.cpp4
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 =
OpenPOWER on IntegriCloud