]> granicus.if.org Git - clang/commitdiff
Silencing the warning from r189605 in a more conformant manner.
authorAaron Ballman <aaron@aaronballman.com>
Thu, 29 Aug 2013 20:36:09 +0000 (20:36 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 29 Aug 2013 20:36:09 +0000 (20:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189606 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/Consumed.cpp

index b004083ed811c58237ee3639f8dfcf728b635d0a..745840d7a1128049566dc8eb48cbecd34d0d84ef 100644 (file)
@@ -74,9 +74,9 @@ static bool isKnownState(ConsumedState State) {
     return true;
   case CS_None:
   case CS_Unknown:
-  default:
     return false;
   }
+  llvm_unreachable("invalid enum");
 }
 
 static bool isTestingFunction(const FunctionDecl *FunDecl) {