diff options
author | Matt Beaumont-Gay <matthewbg@google.com> | 2011-03-17 00:46:34 +0000 |
---|---|---|
committer | Matt Beaumont-Gay <matthewbg@google.com> | 2011-03-17 00:46:34 +0000 |
commit | 17d12fec91098fd4946c3c3e4f45b84423027407 (patch) | |
tree | 2c8b6c50d093e8b7fdcf689150cb6636b23d5804 /lib/CodeGen/CGExprConstant.cpp | |
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
Diffstat (limited to 'lib/CodeGen/CGExprConstant.cpp')
-rw-r--r-- | lib/CodeGen/CGExprConstant.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |