Author: Aaron Ballman Date: 2021-05-27T09:24:43-04:00 New Revision: ce276b7a6448d9c30f55235392c38b0416e91bbb
URL: https://github.com/llvm/llvm-project/commit/ce276b7a6448d9c30f55235392c38b0416e91bbb DIFF: https://github.com/llvm/llvm-project/commit/ce276b7a6448d9c30f55235392c38b0416e91bbb.diff LOG: Fix -Wswitch warning; NFC Added: Modified: clang/lib/Lex/PPDirectives.cpp Removed: ################################################################################ diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp index 1ccf24c6f767..8fe70668a406 100644 --- a/clang/lib/Lex/PPDirectives.cpp +++ b/clang/lib/Lex/PPDirectives.cpp @@ -3259,6 +3259,9 @@ void Preprocessor::HandleElifFamilyDirective(Token &ElifToken, case tok::pp_elifndef: Callbacks->Elifndef(ElifToken.getLocation(), ConditionRange, CI.IfLoc); break; + default: + assert(false && "unexpected directive kind"); + break; } } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits