From f24e54a0c8f0621dc1e964e79dd2fc47f6a2e723 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Wed, 15 Dec 2010 07:29:18 +0000 Subject: [PATCH] Silence GCC warning about control reaching the end of the function and explicitly mark that all cases are handled. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121855 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/DeclarationName.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/AST/DeclarationName.cpp b/lib/AST/DeclarationName.cpp index 596ecc593e..30c9f87e33 100644 --- a/lib/AST/DeclarationName.cpp +++ b/lib/AST/DeclarationName.cpp @@ -20,6 +20,7 @@ #include "clang/Basic/IdentifierTable.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/FoldingSet.h" +#include "llvm/Support/ErrorHandling.h" #include "llvm/Support/raw_ostream.h" using namespace clang; @@ -531,6 +532,7 @@ bool DeclarationNameInfo::containsUnexpandedParameterPack() const { return Name.getCXXNameType()->containsUnexpandedParameterPack(); } + llvm_unreachable("All name kinds handled."); } std::string DeclarationNameInfo::getAsString() const { -- 2.40.0