summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Comment.cpp
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2012-07-06 21:13:09 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2012-07-06 21:13:09 +0000
commit4106ea3b4e7105e6b9646016916c2048061d00eb (patch)
treef8b1c79cc255a29cc957d2eb4a3a55e46080dc68 /clang/lib/AST/Comment.cpp
parentdabd1331869eacc90c21a508bf2c595ec05e0f05 (diff)
downloadbcm5719-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/AST/Comment.cpp')
-rw-r--r--clang/lib/AST/Comment.cpp3
1 files changed, 2 insertions, 1 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
-
OpenPOWER on IntegriCloud