diff --git a/clang/lib/Sema/SemaConcept.cpp b/clang/lib/Sema/SemaConcept.cpp index de8cde16dbae81..54891150da20f6 100644 --- a/clang/lib/Sema/SemaConcept.cpp +++ b/clang/lib/Sema/SemaConcept.cpp @@ -1193,8 +1193,8 @@ Sema::DiagnoseUnsatisfiedConstraint(const ConstraintSatisfaction& Satisfaction, bool First) { assert(!Satisfaction.IsSatisfied && "Attempted to diagnose a satisfied constraint"); - for (auto &Detail : Satisfaction.Details) { - diagnoseUnsatisfiedConstraintExpr(*this, Detail, First); + for (auto &Record : Satisfaction.Details) { + diagnoseUnsatisfiedConstraintExpr(*this, Record, First); First = false; } } @@ -1204,8 +1204,8 @@ void Sema::DiagnoseUnsatisfiedConstraint( bool First) { assert(!Satisfaction.IsSatisfied && "Attempted to diagnose a satisfied constraint"); - for (auto &Pair : Satisfaction) { - diagnoseUnsatisfiedConstraintExpr(*this, Pair, First); + for (auto &Record : Satisfaction) { + diagnoseUnsatisfiedConstraintExpr(*this, Record, First); First = false; } }