summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
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
commit073f3f1609cd0dbadc9923cf919521e1b2c5b2c3 (patch)
tree3172cd683a7cdaae4f5d22f725805239c19c1255 /clang/lib/Sema
parentd6b74cc859a1d77778c5b810013873c003561841 (diff)
downloadbcm5719-llvm-073f3f1609cd0dbadc9923cf919521e1b2c5b2c3.tar.gz
bcm5719-llvm-073f3f1609cd0dbadc9923cf919521e1b2c5b2c3.zip
Fix "fallthrough annotation in unreachable code" warning.
llvm-svn: 362171
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaType.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaType.cpp b/clang/lib/Sema/SemaType.cpp
index e0d43a780e7..eac7c44c76a 100644
--- a/clang/lib/Sema/SemaType.cpp
+++ b/clang/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:
OpenPOWER on IntegriCloud