Skip to content

Commit 8ac398d

Browse files
committed
self-review: remove redundant return
1 parent 98bac32 commit 8ac398d

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

llvm/lib/Frontend/HLSL/HLSLRootSignatureUtils.cpp

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -338,24 +338,12 @@ template <class... Ts> OverloadedVisit(Ts...) -> OverloadedVisit<Ts...>;
338338

339339
void dumpRootElements(raw_ostream &OS, ArrayRef<RootElement> Elements) {
340340
const auto Visitor = OverloadedVisit{
341-
[&OS](const RootFlags &Flags) -> raw_ostream& {
342-
return OS << Flags;
343-
},
344-
[&OS](const RootConstants &Constants) -> raw_ostream& {
345-
return OS << Constants;
346-
},
347-
[&OS](const RootDescriptor &Descriptor) -> raw_ostream& {
348-
return OS << Descriptor;
349-
},
350-
[&OS](const DescriptorTableClause &Clause) -> raw_ostream& {
351-
return OS << Clause;
352-
},
353-
[&OS](const DescriptorTable &Table) -> raw_ostream& {
354-
return OS << Table;
355-
},
356-
[&OS](const StaticSampler &Sampler) -> raw_ostream& {
357-
return OS << Sampler;
358-
},
341+
[&OS](const RootFlags &Flags) { OS << Flags; },
342+
[&OS](const RootConstants &Constants) { OS << Constants; },
343+
[&OS](const RootDescriptor &Descriptor) { OS << Descriptor; },
344+
[&OS](const DescriptorTableClause &Clause) { OS << Clause; },
345+
[&OS](const DescriptorTable &Table) { OS << Table; },
346+
[&OS](const StaticSampler &Sampler) { OS << Sampler; },
359347
};
360348

361349
OS << " RootElements{";

0 commit comments

Comments
 (0)