aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorMingming Liu <mingmingl@google.com>2025-03-23 18:34:52 -0700
committerGitHub <noreply@github.com>2025-03-23 18:34:52 -0700
commit3b20ac00f915d3c3a34222de429fa0a0a47d7dbc (patch)
tree3d7b696c7ee301d60623c2aa4bc19fbdf1a8660b /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent7a056895c59346e75dacee746e101fe92c41a8fd (diff)
downloadllvm-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.cpp8
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(