Sprinkle llvm_unreachable around to placate GCC's -Wreturn-type.

llvm-svn: 159860
This commit is contained in:
Matt Beaumont-Gay 2012-07-06 21:13:09 +00:00
parent dabd133186
commit 4106ea3b4e
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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