forked from OSchip/llvm-project
Sprinkle llvm_unreachable around to placate GCC's -Wreturn-type.
llvm-svn: 159860
This commit is contained in:
parent
dabd133186
commit
4106ea3b4e
|
@ -69,6 +69,7 @@ Comment::child_iterator Comment::child_begin() const {
|
|||
#undef COMMENT
|
||||
#undef ABSTRACT_COMMENT
|
||||
}
|
||||
llvm_unreachable("Unknown comment kind!");
|
||||
}
|
||||
|
||||
Comment::child_iterator Comment::child_end() const {
|
||||
|
@ -82,9 +83,9 @@ Comment::child_iterator Comment::child_end() const {
|
|||
#undef COMMENT
|
||||
#undef ABSTRACT_COMMENT
|
||||
}
|
||||
llvm_unreachable("Unknown comment kind!");
|
||||
}
|
||||
|
||||
|
||||
} // end namespace comments
|
||||
} // end namespace clang
|
||||
|
||||
|
|
|
@ -390,6 +390,7 @@ BlockContentComment *Parser::parseBlockContent() {
|
|||
case tok::html_greater:
|
||||
llvm_unreachable("should not see this token");
|
||||
}
|
||||
llvm_unreachable("bogus token kind");
|
||||
}
|
||||
|
||||
FullComment *Parser::parseFullComment() {
|
||||
|
@ -410,5 +411,3 @@ FullComment *Parser::parseFullComment() {
|
|||
|
||||
} // end namespace comments
|
||||
} // end namespace clang
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue