diff options
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 = |