summaryrefslogtreecommitdiff
path: root/lib/AST/DeclarationName.cpp
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
commitf24e54a0c8f0621dc1e964e79dd2fc47f6a2e723 (patch)
treef66300bb417fb960972c2192f2127b22dae11e57 /lib/AST/DeclarationName.cpp
parentdda0c0dd63bb1ff4a057f1275497e844f99b7909 (diff)
downloadclang-f24e54a0c8f0621dc1e964e79dd2fc47f6a2e723.tar.gz
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
Diffstat (limited to 'lib/AST/DeclarationName.cpp')
-rw-r--r--lib/AST/DeclarationName.cpp2
1 files changed, 2 insertions, 0 deletions
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 {