mirror of https://github.com/microsoft/clang.git
Fix one more 'not all control paths return a value' MSVC warning
The warning was caused by r300539. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@300542 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4163ed68e2
commit
df381a38cf
|
@ -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