r189845 - Fix non-void return warning, and format.

Eric Christopher echristo at gmail.com
Tue Sep 3 13:43:00 PDT 2013


Author: echristo
Date: Tue Sep  3 15:43:00 2013
New Revision: 189845

URL: http://llvm.org/viewvc/llvm-project?rev=189845&view=rev
Log:
Fix non-void return warning, and format.

Modified:
    cfe/trunk/lib/Analysis/Consumed.cpp

Modified: cfe/trunk/lib/Analysis/Consumed.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/Consumed.cpp?rev=189845&r1=189844&r2=189845&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/Consumed.cpp (original)
+++ cfe/trunk/lib/Analysis/Consumed.cpp Tue Sep  3 15:43:00 2013
@@ -89,9 +89,9 @@ static bool isTestingFunction(const Func
   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 mapReturnTypestateA
   case ReturnTypestateAttr::Consumed:
     return CS_Consumed;
   }
+  llvm_unreachable("invalid enum");
 }
 
 static StringRef stateToString(ConsumedState State) {





More information about the cfe-commits mailing list