aboutsummaryrefslogtreecommitdiff
path: root/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
commit4d48b5c1d58c381e6e0c719701ef433b530e0e1a (patch)
tree7d7cdbcd7c06ccf328732eae86d7bb99d6023e8e /lib/AST/Comment.cpp
parentbd2e27e8484c1d378c9c9d089f61ff496627f391 (diff)
Sprinkle llvm_unreachable around to placate GCC's -Wreturn-type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159860 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Comment.cpp')
-rw-r--r--lib/AST/Comment.cpp3
1 files changed, 2 insertions, 1 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
-