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:
parent
e3edef0977
commit
787fbd7add
|
@ -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(
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue