]> granicus.if.org Git - clang/commitdiff
Mark that this function ends in a covering switch statement with every
authorChandler Carruth <chandlerc@gmail.com>
Sun, 1 May 2011 07:23:17 +0000 (07:23 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 1 May 2011 07:23:17 +0000 (07:23 +0000)
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

index 0b2e448e562062441d139b12f842813bcc1552d1..418285d71b3f3fd3c4908a6e1531ca8116e1cf60 100644 (file)
@@ -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,