From: Matt Beaumont-Gay Date: Thu, 17 Mar 2011 00:46:34 +0000 (+0000) Subject: Politely inform GCC that we will never fall off the end of that switch. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=17d12fec91098fd4946c3c3e4f45b84423027407;p=clang Politely inform GCC that we will never fall off the end of that switch. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127783 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGExprConstant.cpp b/lib/CodeGen/CGExprConstant.cpp index 445bca0ab7..a3c4536026 100644 --- a/lib/CodeGen/CGExprConstant.cpp +++ b/lib/CodeGen/CGExprConstant.cpp @@ -618,6 +618,7 @@ public: case CK_FloatingCast: return llvm::ConstantExpr::getFPCast(C, destType); } + llvm_unreachable("Invalid CastKind"); } llvm::Constant *VisitCXXDefaultArgExpr(CXXDefaultArgExpr *DAE) {