aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-04-10 16:03:08 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-04-10 16:03:08 +0000
commit2c6dbd7f5586c3acb0024552967268517b753145 (patch)
treef27f991a2f7da64350b9c767769426fdb31a1d9c
parent970b22675d2b3c66ffa0d41a3d22ac37c352e4a5 (diff)
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
-rw-r--r--lib/Parse/ParseDecl.cpp1
1 files changed, 1 insertions, 0 deletions
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) {