From 47991a15d1925cba4687c5077cc9c81c8fcd00bd Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Sun, 10 Jan 2021 09:35:00 -0500 Subject: [PATCH] [lld/mac] llvm style fix: no else after return --- lld/MachO/Writer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lld/MachO/Writer.cpp b/lld/MachO/Writer.cpp index 53267c0..bdc3609 100644 --- a/lld/MachO/Writer.cpp +++ b/lld/MachO/Writer.cpp @@ -557,7 +557,8 @@ static int sectionOrder(OutputSection *osec) { .Case(section_names::unwindInfo, std::numeric_limits::max() - 1) .Case(section_names::ehFrame, std::numeric_limits::max()) .Default(0); - } else if (segname == segment_names::data) { + } + if (segname == segment_names::data) { // For each thread spawned, dyld will initialize its TLVs by copying the // address range from the start of the first thread-local data section to // the end of the last one. We therefore arrange these sections contiguously @@ -575,7 +576,8 @@ static int sectionOrder(OutputSection *osec) { default: return 0; } - } else if (segname == segment_names::linkEdit) { + } + if (segname == segment_names::linkEdit) { return StringSwitch(osec->name) .Case(section_names::rebase, -8) .Case(section_names::binding, -7) -- 2.7.4