summaryrefslogtreecommitdiff
path: root/lib/Sema/SemaType.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2019-05-30 23:21:13 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2019-05-30 23:21:13 +0000
commit44d5e48d1d83168417a340d28a52c76fe79067ad (patch)
treedc9e468c0fc8a1b4148d99c6473d28aa463c896e /lib/Sema/SemaType.cpp
parent83048f49327157f1cbfa6e20335ec322366abcac (diff)
downloadclang-44d5e48d1d83168417a340d28a52c76fe79067ad.tar.gz
Fix "fallthrough annotation in unreachable code" warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362171 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaType.cpp')
-rw-r--r--lib/Sema/SemaType.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp
index e0d43a780e..eac7c44c76 100644
--- a/lib/Sema/SemaType.cpp
+++ b/lib/Sema/SemaType.cpp
@@ -6971,7 +6971,7 @@ static bool handleFunctionTypeAttr(TypeProcessingState &state, ParsedAttr &attr,
switch (Proto->getExceptionSpecType()) {
case EST_None:
llvm_unreachable("This doesn't have an exception spec!");
- LLVM_FALLTHROUGH;
+
case EST_DynamicNone:
case EST_BasicNoexcept:
case EST_NoexceptTrue: