commit | 17d12fec91098fd4946c3c3e4f45b84423027407 | [log] [tgz] |
---|---|---|
author | Matt Beaumont-Gay <matthewbg@google.com> | Thu Mar 17 00:46:34 2011 +0000 |
committer | Matt Beaumont-Gay <matthewbg@google.com> | Thu Mar 17 00:46:34 2011 +0000 |
tree | 2c8b6c50d093e8b7fdcf689150cb6636b23d5804 | |
parent | 7187fac0f19f75c62f575c9f15f0ed68b7d97810 [diff] |
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 445bca0..a3c4536 100644 --- a/lib/CodeGen/CGExprConstant.cpp +++ b/lib/CodeGen/CGExprConstant.cpp
@@ -618,6 +618,7 @@ case CK_FloatingCast: return llvm::ConstantExpr::getFPCast(C, destType); } + llvm_unreachable("Invalid CastKind"); } llvm::Constant *VisitCXXDefaultArgExpr(CXXDefaultArgExpr *DAE) {