From 2b59fbe7198dc701adff2e03e6a686911e5ae86e Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Wed, 15 Dec 2010 07:29:18 +0000 Subject: Silence GCC warning about control reaching the end of the function and explicitly mark that all cases are handled. llvm-svn: 121855 --- clang/lib/AST/DeclarationName.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang') diff --git a/clang/lib/AST/DeclarationName.cpp b/clang/lib/AST/DeclarationName.cpp index 596ecc593e3..30c9f87e33a 100644 --- a/clang/lib/AST/DeclarationName.cpp +++ b/clang/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 { -- cgit v1.2.3