]> granicus.if.org Git - clang/commitdiff
Fix the -Werror build by removing an unused default in a fully covered switch
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 10 Feb 2017 00:06:38 +0000 (00:06 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 10 Feb 2017 00:06:38 +0000 (00:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@294676 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MacroPPCallbacks.cpp

index 71eb55ca2f1647c0c616a71ca163aa6248bb861d..a22cf093c8dbf3982e4ab749635147be5aaacf40 100644 (file)
@@ -122,8 +122,6 @@ void MacroPPCallbacks::updateStatusToNextScope() {
 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;