Merge commit 6dbdb8430b49 from llvm git (by Nikolas Klauser):

[Clang] Fix crash due to invalid source location in __is_trivially_equality_comparable (#107815)

  Fixes #107777

This fixes an assertion failure building www/qt5-webengine:

  Assertion failed: (Loc.isValid() && "point of instantiation must be valid!"), function setPointOfInstantiation, file contrib/llvm-project/clang/include/clang/AST/DeclTemplate.h, line 1938.

PR:		280562
MFC after:	1 month
This commit is contained in:
Dimitry Andric 2024-09-11 12:17:00 +02:00
parent 6c4b055cfb
commit 835c3a3e69

View file

@ -5140,7 +5140,8 @@ static bool HasNonDeletedDefaultedEqualityComparison(Sema &S,
// const ClassT& obj;
OpaqueValueExpr Operand(
{}, Decl->getTypeForDecl()->getCanonicalTypeUnqualified().withConst(),
KeyLoc,
Decl->getTypeForDecl()->getCanonicalTypeUnqualified().withConst(),
ExprValueKind::VK_LValue);
UnresolvedSet<16> Functions;
// obj == obj;