From ce276b7a6448d9c30f55235392c38b0416e91bbb Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Thu, 27 May 2021 09:23:20 -0400 Subject: [PATCH] Fix -Wswitch warning; NFC --- clang/lib/Lex/PPDirectives.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp index 1ccf24c..8fe7066 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; } } -- 2.7.4