Fix MSVC "not all control paths return a value" warning. NFCI.

This commit is contained in:
Simon Pilgrim 2020-10-19 11:15:38 +01:00
parent 0e5248be86
commit 7fe7d9b130
1 changed files with 1 additions and 0 deletions

View File

@ -1463,6 +1463,7 @@ static bool castPreservesZero(const CastExpr *CE) {
case CK_UncheckedDerivedToBase:
return false;
}
llvm_unreachable("Unhandled clang::CastKind enum");
}
/// isSimpleZero - If emitting this value will obviously just cause a store of