diff options
author | Matt Beaumont-Gay <matthewbg@google.com> | 2012-07-06 21:13:09 +0000 |
---|---|---|
committer | Matt Beaumont-Gay <matthewbg@google.com> | 2012-07-06 21:13:09 +0000 |
commit | 4106ea3b4e7105e6b9646016916c2048061d00eb (patch) | |
tree | f8b1c79cc255a29cc957d2eb4a3a55e46080dc68 /clang/lib | |
parent | dabd1331869eacc90c21a508bf2c595ec05e0f05 (diff) | |
download | bcm5719-llvm-4106ea3b4e7105e6b9646016916c2048061d00eb.tar.gz bcm5719-llvm-4106ea3b4e7105e6b9646016916c2048061d00eb.zip |
Sprinkle llvm_unreachable around to placate GCC's -Wreturn-type.
llvm-svn: 159860
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/AST/Comment.cpp | 3 | ||||
-rw-r--r-- | clang/lib/AST/CommentParser.cpp | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/AST/Comment.cpp b/clang/lib/AST/Comment.cpp index 22277ad88ae..4681d5a143d 100644 --- a/clang/lib/AST/Comment.cpp +++ b/clang/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/clang/lib/AST/CommentParser.cpp b/clang/lib/AST/CommentParser.cpp index 14a2d85ae4b..2df3759bb96 100644 --- a/clang/lib/AST/CommentParser.cpp +++ b/clang/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 - - |