Fix one more 'not all control paths return a value' MSVC warning

The warning was caused by r300539.

llvm-svn: 300542
This commit is contained in:
Alex Lorenz 2017-04-18 10:17:41 +00:00
parent e3edef0977
commit 787fbd7add
2 changed files with 3 additions and 1 deletions

View File

@ -1014,6 +1014,8 @@ static bool isAbstractAttrMatcherRule(attr::SubjectMatchRule Rule) {
return IsAbstract;
#include "clang/Basic/AttrSubMatchRulesList.inc"
}
llvm_unreachable("Invalid attribute subject match rule");
return false;
}
static void diagnoseExpectedAttributeSubjectSubRule(

View File

@ -3168,7 +3168,7 @@ emitAttributeMatchRules(PragmaClangAttributeSupport &PragmaAttributeSupport,
OS << ";\n";
}
OS << " }\n";
OS << " llvm_unreachable(\"Invalid match rule\");\n";
OS << " llvm_unreachable(\"Invalid match rule\");\nreturn false;\n";
OS << "}\n\n";
}