[cfe-commits] r154399 - /cfe/trunk/lib/Parse/ParseDecl.cpp

Chandler Carruth chandlerc at gmail.com
Tue Apr 10 09:03:08 PDT 2012


Author: chandlerc
Date: Tue Apr 10 11:03:08 2012
New Revision: 154399

URL: http://llvm.org/viewvc/llvm-project?rev=154399&view=rev
Log:
Fix GCC's pedantic return-type warning -- this enum is fully covered.

Modified:
    cfe/trunk/lib/Parse/ParseDecl.cpp

Modified: cfe/trunk/lib/Parse/ParseDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseDecl.cpp?rev=154399&r1=154398&r2=154399&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseDecl.cpp (original)
+++ cfe/trunk/lib/Parse/ParseDecl.cpp Tue Apr 10 11:03:08 2012
@@ -937,6 +937,7 @@
       << SourceRange(BeginLoc, EndLoc);
     return true;
   }
+  llvm_unreachable("All cases handled above.");
 }
 
 void Parser::DiagnoseProhibitedAttributes(ParsedAttributesWithRange &attrs) {





More information about the cfe-commits mailing list