From: Chandler Carruth Date: Tue, 10 Apr 2012 16:03:08 +0000 (+0000) Subject: Fix GCC's pedantic return-type warning -- this enum is fully covered. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c6dbd7f5586c3acb0024552967268517b753145;p=clang Fix GCC's pedantic return-type warning -- this enum is fully covered. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154399 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index 969e0b21b0..d2ec7aa48b 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/lib/Parse/ParseDecl.cpp @@ -937,6 +937,7 @@ bool Parser::DiagnoseProhibitedCXX11Attribute() { << SourceRange(BeginLoc, EndLoc); return true; } + llvm_unreachable("All cases handled above."); } void Parser::DiagnoseProhibitedAttributes(ParsedAttributesWithRange &attrs) {