diff options
author | Mingming Liu <mingmingl@google.com> | 2025-03-23 18:34:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-23 18:34:52 -0700 |
commit | 3b20ac00f915d3c3a34222de429fa0a0a47d7dbc (patch) | |
tree | 3d7b696c7ee301d60623c2aa4bc19fbdf1a8660b /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 7a056895c59346e75dacee746e101fe92c41a8fd (diff) | |
download | llvm-3b20ac00f915d3c3a34222de429fa0a0a47d7dbc.zip llvm-3b20ac00f915d3c3a34222de429fa0a0a47d7dbc.tar.gz llvm-3b20ac00f915d3c3a34222de429fa0a0a47d7dbc.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index 59417d0..a6b5e2e 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -983,10 +983,10 @@ MCSection *TargetLoweringObjectFileELF::getUniqueSectionForFunction( return selectExplicitSectionGlobal( &F, Kind, TM, getContext(), getMangler(), NextUniqueID, Used.count(&F), /* ForceUnique = */true); - else - return selectELFSectionForGlobal( - getContext(), &F, Kind, getMangler(), TM, Used.count(&F), - /*EmitUniqueSection=*/true, Flags, &NextUniqueID); + + return selectELFSectionForGlobal( + getContext(), &F, Kind, getMangler(), TM, Used.count(&F), + /*EmitUniqueSection=*/true, Flags, &NextUniqueID); } MCSection *TargetLoweringObjectFileELF::getSectionForJumpTable( |