diff --git a/clang/lib/Basic/DiagnosticIDs.cpp b/clang/lib/Basic/DiagnosticIDs.cpp index d5928431f41a2..e2d940c0d39e9 100644 --- a/clang/lib/Basic/DiagnosticIDs.cpp +++ b/clang/lib/Basic/DiagnosticIDs.cpp @@ -705,7 +705,7 @@ static void forEachSubGroupImpl(const WarningOption *Group, Func func) { for (const int16_t *SubGroups = DiagSubGroups + Group->SubGroups; *SubGroups != -1; ++SubGroups) { func(static_cast(*SubGroups)); - forEachSubGroupImpl(&OptionTable[*SubGroups], std::move(func)); + forEachSubGroupImpl(&OptionTable[*SubGroups], func); } }