Add a llvm_unreachable to fix MSVC unhandled enum warning. NFCI.

This commit is contained in:
Simon Pilgrim 2020-11-10 10:17:46 +00:00
parent 203b4774b8
commit defc59734a
1 changed files with 2 additions and 0 deletions

View File

@ -5028,6 +5028,8 @@ static bool isZeroInitialized(QualType T, const APValue &V) {
case APValue::MemberPointer: case APValue::MemberPointer:
return !V.getMemberPointerDecl(); return !V.getMemberPointerDecl();
} }
llvm_unreachable("Unhandled APValue::ValueKind enum");
} }
void CXXNameMangler::mangleValueInTemplateArg(QualType T, const APValue &V) { void CXXNameMangler::mangleValueInTemplateArg(QualType T, const APValue &V) {