diff options
author | Erich Keane <erich.keane@intel.com> | 2019-05-31 17:00:48 +0000 |
---|---|---|
committer | Erich Keane <erich.keane@intel.com> | 2019-05-31 17:00:48 +0000 |
commit | 68fa6ddb9d441fa54e26f3f13372617a35f30d61 (patch) | |
tree | bfd6209b74e7ab5f525a8607b1810d6c8b2bf642 /clang/lib | |
parent | 8dda4a16753dbe8b0b0c1015bc30b58b2dde2cf1 (diff) | |
download | bcm5719-llvm-68fa6ddb9d441fa54e26f3f13372617a35f30d61.tar.gz bcm5719-llvm-68fa6ddb9d441fa54e26f3f13372617a35f30d61.zip |
Replace 'default' in an enum-over-a-switch with the missing list.
This suppressed the Wswitch warning causing me to miss it and write an
assertion failure.
llvm-svn: 362245
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/Sema/SemaExceptionSpec.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExceptionSpec.cpp b/clang/lib/Sema/SemaExceptionSpec.cpp index e8f559af4da..8f3ebc29b52 100644 --- a/clang/lib/Sema/SemaExceptionSpec.cpp +++ b/clang/lib/Sema/SemaExceptionSpec.cpp @@ -429,7 +429,11 @@ bool Sema::CheckEquivalentExceptionSpec(FunctionDecl *Old, FunctionDecl *New) { case EST_NoThrow: OS <<"__attribute__((nothrow))"; break; - default: + case EST_None: + case EST_MSAny: + case EST_Unevaluated: + case EST_Uninstantiated: + case EST_Unparsed: llvm_unreachable("This spec type is compatible with none."); } |