[clang] ce276b7 - Fix -Wswitch warning; NFC

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu May 27 06:24:51 PDT 2021


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;
     }
   }
 


        


More information about the cfe-commits mailing list