Skip to content

Commit 5e67476

Browse files
authored
[Clang] Remove use after move of lambda (llvm#136728)
Static analysis flagged this use after move. It is undefined behavior and I don't see any possible performance gains here to attempt to do anything else but simply remove it.
1 parent ce2b3ce commit 5e67476

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Basic/DiagnosticIDs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ static void forEachSubGroupImpl(const WarningOption *Group, Func func) {
705705
for (const int16_t *SubGroups = DiagSubGroups + Group->SubGroups;
706706
*SubGroups != -1; ++SubGroups) {
707707
func(static_cast<size_t>(*SubGroups));
708-
forEachSubGroupImpl(&OptionTable[*SubGroups], std::move(func));
708+
forEachSubGroupImpl(&OptionTable[*SubGroups], func);
709709
}
710710
}
711711

0 commit comments

Comments
 (0)