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 | 145e2eb0e35bd92a5d14ec29246526dfe639d88f (patch) | |
| tree | 7182d5ab0fb7a6f48e0f24f0c37ce03f02d6ba89 /clang/lib/CodeGen/CGExprConstant.cpp | |
| parent | dbfc256eec952416c80678c7f5aed86bd8256e5e (diff) | |
| download | bcm5719-llvm-145e2eb0e35bd92a5d14ec29246526dfe639d88f.tar.gz bcm5719-llvm-145e2eb0e35bd92a5d14ec29246526dfe639d88f.zip | |
Politely inform GCC that we will never fall off the end of that switch.
llvm-svn: 127783
Diffstat (limited to 'clang/lib/CodeGen/CGExprConstant.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGExprConstant.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGExprConstant.cpp b/clang/lib/CodeGen/CGExprConstant.cpp index 445bca0ab74..a3c45360260 100644 --- a/clang/lib/CodeGen/CGExprConstant.cpp +++ b/clang/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) { |

