Skip to content

Commit e6e9319

Browse files
authored
[LLVM][TextAPI] Refactor Redundant Condition (#86542)
Fixes #83241 --------- Signed-off-by: Troy-Butler <[email protected]> Co-authored-by: Troy-Butler <[email protected]>
1 parent 1b79a34 commit e6e9319

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/TextAPI/TextStub.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ namespace yaml {
276276
template <> struct MappingTraits<ExportSection> {
277277
static void mapping(IO &IO, ExportSection &Section) {
278278
const auto *Ctx = reinterpret_cast<TextAPIContext *>(IO.getContext());
279-
assert((!Ctx || (Ctx && Ctx->FileKind != FileType::Invalid)) &&
279+
assert((!Ctx || Ctx->FileKind != FileType::Invalid) &&
280280
"File type is not set in YAML context");
281281

282282
IO.mapRequired("archs", Section.Architectures);
@@ -298,7 +298,7 @@ template <> struct MappingTraits<ExportSection> {
298298
template <> struct MappingTraits<UndefinedSection> {
299299
static void mapping(IO &IO, UndefinedSection &Section) {
300300
const auto *Ctx = reinterpret_cast<TextAPIContext *>(IO.getContext());
301-
assert((!Ctx || (Ctx && Ctx->FileKind != FileType::Invalid)) &&
301+
assert((!Ctx || Ctx->FileKind != FileType::Invalid) &&
302302
"File type is not set in YAML context");
303303

304304
IO.mapRequired("archs", Section.Architectures);

0 commit comments

Comments
 (0)