[TextAPI] Remove redundant checking causing warnings. NFC.

- Minor coding format.

llvm-svn: 372765
This commit is contained in:
Michael Liao 2019-09-24 14:52:13 +00:00
parent 5f738940b5
commit ca635d7d44
1 changed files with 4 additions and 4 deletions

View File

@ -45,11 +45,11 @@ void ScalarTraits<PlatformSet>::output(const PlatformSet &Values, void *IO,
raw_ostream &OS) {
const auto *Ctx = reinterpret_cast<TextAPIContext *>(IO);
assert((!Ctx || Ctx && Ctx->FileKind != FileType::Invalid) &&
assert((!Ctx || Ctx->FileKind != FileType::Invalid) &&
"File type is not set in context");
if ( Ctx && Ctx->FileKind == TBD_V3 && Values.count(PlatformKind::macOS) &&
Values.count(PlatformKind::macCatalyst) ) {
if (Ctx && Ctx->FileKind == TBD_V3 && Values.count(PlatformKind::macOS) &&
Values.count(PlatformKind::macCatalyst)) {
OS << "zippered";
return;
}
@ -80,7 +80,7 @@ void ScalarTraits<PlatformSet>::output(const PlatformSet &Values, void *IO,
StringRef ScalarTraits<PlatformSet>::input(StringRef Scalar, void *IO,
PlatformSet &Values) {
const auto *Ctx = reinterpret_cast<TextAPIContext *>(IO);
assert((!Ctx || Ctx && Ctx->FileKind != FileType::Invalid) &&
assert((!Ctx || Ctx->FileKind != FileType::Invalid) &&
"File type is not set in context");
if (Scalar == "zippered") {