r294676 - Fix the -Werror build by removing an unused default in a fully covered switch

David Blaikie via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 9 16:06:39 PST 2017


Author: dblaikie
Date: Thu Feb  9 18:06:38 2017
New Revision: 294676

URL: http://llvm.org/viewvc/llvm-project?rev=294676&view=rev
Log:
Fix the -Werror build by removing an unused default in a fully covered switch

Modified:
    cfe/trunk/lib/CodeGen/MacroPPCallbacks.cpp

Modified: cfe/trunk/lib/CodeGen/MacroPPCallbacks.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/MacroPPCallbacks.cpp?rev=294676&r1=294675&r2=294676&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/MacroPPCallbacks.cpp (original)
+++ cfe/trunk/lib/CodeGen/MacroPPCallbacks.cpp Thu Feb  9 18:06:38 2017
@@ -122,8 +122,6 @@ void MacroPPCallbacks::updateStatusToNex
 void MacroPPCallbacks::FileEntered(SourceLocation Loc) {
   SourceLocation LineLoc = getCorrectLocation(LastHashLoc);
   switch (Status) {
-  default:
-    llvm_unreachable("Do not expect to enter a file from current scope");
   case NoScope:
     updateStatusToNextScope();
     break;




More information about the cfe-commits mailing list