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;


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to