forked from OSchip/llvm-project
Fix -Wcovered-switch-default uncovered after r338630
llvm-svn: 338643
This commit is contained in:
parent
c07f9bb83a
commit
ce3efe57ef
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue