Add llvm_unreachable to pacify GCC's dropping off non-void function warning.

+ 80 cols fix.

llvm-svn: 192728
This commit is contained in:
Benjamin Kramer 2013-10-15 18:53:18 +00:00
parent 916ac4d233
commit 656363d5b5
1 changed files with 4 additions and 1 deletions

View File

@ -5844,7 +5844,8 @@ static CXAvailabilityKind getCursorAvailabilityForDecl(const Decl *D) {
case AR_Available:
case AR_NotYetIntroduced:
if (const EnumConstantDecl *EnumConst = dyn_cast<EnumConstantDecl>(D))
return getCursorAvailabilityForDecl(cast<Decl>(EnumConst->getDeclContext()));
return getCursorAvailabilityForDecl(
cast<Decl>(EnumConst->getDeclContext()));
return CXAvailability_Available;
case AR_Deprecated:
@ -5853,6 +5854,8 @@ static CXAvailabilityKind getCursorAvailabilityForDecl(const Decl *D) {
case AR_Unavailable:
return CXAvailability_NotAvailable;
}
llvm_unreachable("Unknown availability kind!");
}
enum CXAvailabilityKind clang_getCursorAvailability(CXCursor cursor) {