]> granicus.if.org Git - clang/commitdiff
Fix non-void return warning, and format.
authorEric Christopher <echristo@gmail.com>
Tue, 3 Sep 2013 20:43:00 +0000 (20:43 +0000)
committerEric Christopher <echristo@gmail.com>
Tue, 3 Sep 2013 20:43:00 +0000 (20:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189845 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/Consumed.cpp

index 6ffdb23f2e9b21d78829b857e8b956746927b49b..78153a0a684e5e6be26926dfc95486560b944eb7 100644 (file)
@@ -89,9 +89,9 @@ static bool isTestingFunction(const FunctionDecl *FunDecl) {
   return FunDecl->hasAttr<TestsUnconsumedAttr>();
 }
 
-static ConsumedState mapReturnTypestateAttrState(
-  const ReturnTypestateAttr *RTSAttr) {
-  
+static ConsumedState
+mapReturnTypestateAttrState(const ReturnTypestateAttr *RTSAttr) {
+
   switch (RTSAttr->getState()) {
   case ReturnTypestateAttr::Unknown:
     return CS_Unknown;
@@ -100,6 +100,7 @@ static ConsumedState mapReturnTypestateAttrState(
   case ReturnTypestateAttr::Consumed:
     return CS_Consumed;
   }
+  llvm_unreachable("invalid enum");
 }
 
 static StringRef stateToString(ConsumedState State) {