diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-05-01 07:23:17 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-05-01 07:23:17 +0000 |
commit | 73e0a91c9130a048dfb0928643b9cde1f838b87d (patch) | |
tree | f367820f16d8bd012bf1feb93654cbba91193c40 /lib/Sema/SemaExprCXX.cpp | |
parent | 98fa94d2564057555c4a12e8737b8371700cf6e4 (diff) |
Mark that this function ends in a covering switch statement with every
case returning a value.
Silences a GCC warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130644 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExprCXX.cpp')
-rw-r--r-- | lib/Sema/SemaExprCXX.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Sema/SemaExprCXX.cpp b/lib/Sema/SemaExprCXX.cpp index 0b2e448e56..418285d71b 100644 --- a/lib/Sema/SemaExprCXX.cpp +++ b/lib/Sema/SemaExprCXX.cpp @@ -28,6 +28,7 @@ #include "clang/Basic/TargetInfo.h" #include "clang/Lex/Preprocessor.h" #include "llvm/ADT/STLExtras.h" +#include "llvm/Support/ErrorHandling.h" using namespace clang; using namespace sema; @@ -2451,6 +2452,7 @@ static bool CheckUnaryTypeTraitTypeCompleteness(Sema &S, return !S.RequireCompleteType( Loc, ElTy, diag::err_incomplete_type_used_in_type_trait_expr); } + llvm_unreachable("Type trait not handled by switch"); } static bool EvaluateUnaryTypeTrait(Sema &Self, UnaryTypeTrait UTT, |