summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-12-15 07:29:18 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-12-15 07:29:18 +0000
commit2b59fbe7198dc701adff2e03e6a686911e5ae86e (patch)
treefbc0ff8b7aa2d7f91470002a3fad6c859312e8a0 /clang/lib
parent5174921b5b6716325b5c60c2d5f4aa0ca690414d (diff)
downloadbcm5719-llvm-2b59fbe7198dc701adff2e03e6a686911e5ae86e.tar.gz
bcm5719-llvm-2b59fbe7198dc701adff2e03e6a686911e5ae86e.zip
Silence GCC warning about control reaching the end of the function and explicitly mark that all cases are handled.
llvm-svn: 121855
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/AST/DeclarationName.cpp2
1 files changed, 2 insertions, 0 deletions
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 {
OpenPOWER on IntegriCloud