diff options
Diffstat (limited to 'lib/AST')
-rw-r--r-- | lib/AST/Comment.cpp | 3 | ||||
-rw-r--r-- | lib/AST/CommentParser.cpp | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/AST/Comment.cpp b/lib/AST/Comment.cpp index 22277ad88a..4681d5a143 100644 --- a/lib/AST/Comment.cpp +++ b/lib/AST/Comment.cpp @@ -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 - diff --git a/lib/AST/CommentParser.cpp b/lib/AST/CommentParser.cpp index 14a2d85ae4..2df3759bb9 100644 --- a/lib/AST/CommentParser.cpp +++ b/lib/AST/CommentParser.cpp @@ -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 - - |