Fix -Wcovered-switch-default uncovered after r338630

llvm-svn: 338643
This commit is contained in:
Reid Kleckner 2018-08-01 22:10:03 +00:00
parent c07f9bb83a
commit ce3efe57ef
1 changed files with 1 additions and 1 deletions

View File

@ -154,11 +154,11 @@ void Decl::setInvalidDecl(bool Invalid) {
const char *DeclContext::getDeclKindName() const {
switch (getDeclKind()) {
default: llvm_unreachable("Declaration context not in DeclNodes.inc!");
#define DECL(DERIVED, BASE) case Decl::DERIVED: return #DERIVED;
#define ABSTRACT_DECL(DECL)
#include "clang/AST/DeclNodes.inc"
}
llvm_unreachable("Declaration context not in DeclNodes.inc!");
}
bool Decl::StatisticsEnabled = false;