diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-10-15 18:53:18 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-10-15 18:53:18 +0000 |
commit | f0598303822047e6b9ad327ffce929c1e61fc065 (patch) | |
tree | 8e34e93bfe84ee0019aef4dc67994360525746ed /tools | |
parent | 8690cee218a59d3f6eaca17b9c25d03a52ebacaa (diff) | |
download | clang-f0598303822047e6b9ad327ffce929c1e61fc065.tar.gz clang-f0598303822047e6b9ad327ffce929c1e61fc065.tar.bz2 clang-f0598303822047e6b9ad327ffce929c1e61fc065.tar.xz |
Add llvm_unreachable to pacify GCC's dropping off non-void function warning.
+ 80 cols fix.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192728 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/libclang/CIndex.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/libclang/CIndex.cpp b/tools/libclang/CIndex.cpp index 8e14d3ff16..7288402963 100644 --- a/tools/libclang/CIndex.cpp +++ b/tools/libclang/CIndex.cpp @@ -5844,7 +5844,8 @@ static CXAvailabilityKind getCursorAvailabilityForDecl(const Decl *D) { case AR_Available: case AR_NotYetIntroduced: if (const EnumConstantDecl *EnumConst = dyn_cast<EnumConstantDecl>(D)) - return getCursorAvailabilityForDecl(cast<Decl>(EnumConst->getDeclContext())); + return getCursorAvailabilityForDecl( + cast<Decl>(EnumConst->getDeclContext())); return CXAvailability_Available; case AR_Deprecated: @@ -5853,6 +5854,8 @@ static CXAvailabilityKind getCursorAvailabilityForDecl(const Decl *D) { case AR_Unavailable: return CXAvailability_NotAvailable; } + + llvm_unreachable("Unknown availability kind!"); } enum CXAvailabilityKind clang_getCursorAvailability(CXCursor cursor) { |