From ca635d7d44fb87e8da283c88042792972f121b3c Mon Sep 17 00:00:00 2001 From: Michael Liao Date: Tue, 24 Sep 2019 14:52:13 +0000 Subject: [TextAPI] Remove redundant checking causing warnings. NFC. - Minor coding format. llvm-svn: 372765 --- llvm/lib/TextAPI/MachO/TextStubCommon.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'llvm/lib/TextAPI/MachO/TextStubCommon.cpp') diff --git a/llvm/lib/TextAPI/MachO/TextStubCommon.cpp b/llvm/lib/TextAPI/MachO/TextStubCommon.cpp index 806ca03..cfd9ac8 100644 --- a/llvm/lib/TextAPI/MachO/TextStubCommon.cpp +++ b/llvm/lib/TextAPI/MachO/TextStubCommon.cpp @@ -45,11 +45,11 @@ void ScalarTraits::output(const PlatformSet &Values, void *IO, raw_ostream &OS) { const auto *Ctx = reinterpret_cast(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::output(const PlatformSet &Values, void *IO, StringRef ScalarTraits::input(StringRef Scalar, void *IO, PlatformSet &Values) { const auto *Ctx = reinterpret_cast(IO); - assert((!Ctx || Ctx && Ctx->FileKind != FileType::Invalid) && + assert((!Ctx || Ctx->FileKind != FileType::Invalid) && "File type is not set in context"); if (Scalar == "zippered") { -- cgit v1.1