Suppress bogus gcc -Wreturn-type warnings.

llvm-svn: 240199
This commit is contained in:
Nico Weber 2015-06-20 00:06:30 +00:00
parent d200893741
commit 708aabd3ef
4 changed files with 4 additions and 0 deletions

View File

@ -3544,6 +3544,7 @@ public:
case NullabilityKind::Unspecified:
return attr_null_unspecified;
}
llvm_unreachable("Unknown nullability kind.");
}
/// Strip off the top-level nullability annotation on the given

View File

@ -2466,6 +2466,7 @@ bool Type::canHaveNullability() const {
case Type::Atomic:
return false;
}
llvm_unreachable("bad type kind!");
}
llvm::Optional<NullabilityKind> AttributedType::getImmediateNullability() const {

View File

@ -658,4 +658,5 @@ StringRef clang::getNullabilitySpelling(NullabilityKind kind) {
case NullabilityKind::Unspecified:
return "__null_unspecified";
}
llvm_unreachable("Unknown nullability kind.");
}

View File

@ -2581,6 +2581,7 @@ IdentifierInfo *Sema::getNullabilityKeyword(NullabilityKind nullability) {
Ident___null_unspecified = PP.getIdentifierInfo("__null_unspecified");
return Ident___null_unspecified;
}
llvm_unreachable("Unknown nullability kind.");
}
/// Retrieve the identifier "NSError".