]> granicus.if.org Git - clang/commitdiff
Fix GCC's pedantic return-type warning -- this enum is fully covered.
authorChandler Carruth <chandlerc@gmail.com>
Tue, 10 Apr 2012 16:03:08 +0000 (16:03 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 10 Apr 2012 16:03:08 +0000 (16:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154399 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Parse/ParseDecl.cpp

index 969e0b21b06077d7aaec8baff5a3e9a64b494d37..d2ec7aa48bd5064077e5db444ac1706894c260e2 100644 (file)
@@ -937,6 +937,7 @@ bool Parser::DiagnoseProhibitedCXX11Attribute() {
       << SourceRange(BeginLoc, EndLoc);
     return true;
   }
+  llvm_unreachable("All cases handled above.");
 }
 
 void Parser::DiagnoseProhibitedAttributes(ParsedAttributesWithRange &attrs) {