[Clang] Fix compilation with GCC 7.5

Fixes #73628
This commit is contained in:
Corentin Jabot
2023-11-28 12:05:34 +01:00
parent facead618b
commit 4142a64ae3

View File

@@ -17299,7 +17299,7 @@ bool Sema::EvaluateStaticAssertMessageAsString(Expr *Message,
OverloadCandidateSet::CSK_Normal);
if (MemberLookup.empty())
return std::nullopt;
return MemberLookup;
return std::move(MemberLookup);
};
bool SizeNotFound, DataNotFound;