forked from OSchip/llvm-project
Suppress bogus gcc -Wreturn-type warnings.
llvm-svn: 240199
This commit is contained in:
parent
d200893741
commit
708aabd3ef
|
@ -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
|
||||
|
|
|
@ -2466,6 +2466,7 @@ bool Type::canHaveNullability() const {
|
|||
case Type::Atomic:
|
||||
return false;
|
||||
}
|
||||
llvm_unreachable("bad type kind!");
|
||||
}
|
||||
|
||||
llvm::Optional<NullabilityKind> AttributedType::getImmediateNullability() const {
|
||||
|
|
|
@ -658,4 +658,5 @@ StringRef clang::getNullabilitySpelling(NullabilityKind kind) {
|
|||
case NullabilityKind::Unspecified:
|
||||
return "__null_unspecified";
|
||||
}
|
||||
llvm_unreachable("Unknown nullability kind.");
|
||||
}
|
||||
|
|
|
@ -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".
|
||||
|
|
Loading…
Reference in New Issue