From 73e0a91c9130a048dfb0928643b9cde1f838b87d Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Sun, 1 May 2011 07:23:17 +0000 Subject: [PATCH] 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 --- lib/Sema/SemaExprCXX.cpp | 2 ++ 1 file changed, 2 insertions(+) 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, -- 2.50.1