[Sema] Fix a warning
authorKazu Hirata <kazu@google.com>
Mon, 5 Jun 2023 19:59:58 +0000 (12:59 -0700)
committerKazu Hirata <kazu@google.com>
Mon, 5 Jun 2023 19:59:58 +0000 (12:59 -0700)
This patch fixes:

  clang/lib/Sema/SemaExprCXX.cpp:5591:3: error: default label in
  switch which covers all enumeration values
  [-Werror,-Wcovered-switch-default]

clang/lib/Sema/SemaExprCXX.cpp

index 30925c37dc08c8a003b521ce9491bbdd726b86c9..eeae6cda53e5b2fb2dfcad6827d3494504c86511 100644 (file)
@@ -5588,9 +5588,6 @@ ExprResult Sema::BuildTypeTrait(TypeTrait Kind, SourceLocation KWLoc,
     return TypeTraitExpr::Create(Context, Context.getLogicalOperationType(),
                                  KWLoc, Kind, Args, RParenLoc, Result);
   }
-  default:
-    llvm_unreachable("reached the end of BuildTypeTrait because the type "
-                     "trait's type is unaccounted for");
   }
 }