Skip to content

Commit 3b20ac0

Browse files
[NFC]Don't use else after a return (#132644)
A trivial code clean-up per https://llvm.org/docs/CodingStandards.html#don-t-use-else-after-a-return
1 parent 7a05689 commit 3b20ac0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -983,10 +983,10 @@ MCSection *TargetLoweringObjectFileELF::getUniqueSectionForFunction(
983983
return selectExplicitSectionGlobal(
984984
&F, Kind, TM, getContext(), getMangler(), NextUniqueID,
985985
Used.count(&F), /* ForceUnique = */true);
986-
else
987-
return selectELFSectionForGlobal(
988-
getContext(), &F, Kind, getMangler(), TM, Used.count(&F),
989-
/*EmitUniqueSection=*/true, Flags, &NextUniqueID);
986+
987+
return selectELFSectionForGlobal(
988+
getContext(), &F, Kind, getMangler(), TM, Used.count(&F),
989+
/*EmitUniqueSection=*/true, Flags, &NextUniqueID);
990990
}
991991

992992
MCSection *TargetLoweringObjectFileELF::getSectionForJumpTable(

0 commit comments

Comments
 (0)