File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -13174,9 +13174,9 @@ class Sema final : public SemaBase {
13174
13174
: Kind(TemplateInstantiation),
13175
13175
SavedInNonInstantiationSFINAEContext(false),
13176
13176
InConstraintSubstitution(false),
13177
- InParameterMappingSubstitution(false),
13178
- Entity (nullptr), Template (nullptr),
13179
- TemplateArgs(nullptr), NumTemplateArgs(0), DeductionInfo(nullptr) {}
13177
+ InParameterMappingSubstitution(false), Entity(nullptr),
13178
+ Template (nullptr), TemplateArgs (nullptr), NumTemplateArgs(0 ),
13179
+ DeductionInfo(nullptr) {}
13180
13180
13181
13181
/// Determines whether this template is an actual instantiation
13182
13182
/// that should be counted toward the maximum instantiation depth.
Original file line number Diff line number Diff line change @@ -804,7 +804,7 @@ clang::MakeDeductionFailureInfo(ASTContext &Context,
804
804
case TemplateDeductionResult::ConstraintsNotSatisfied: {
805
805
CNSInfo *Saved = new (Context) CNSInfo;
806
806
Saved->TemplateArgs = Info.takeSugared();
807
- Saved->Satisfaction = Info.AssociatedConstraintsSatisfaction;
807
+ Saved->Satisfaction = std::move( Info.AssociatedConstraintsSatisfaction) ;
808
808
Result.Data = Saved;
809
809
break;
810
810
}
@@ -852,6 +852,7 @@ void DeductionFailureInfo::Destroy() {
852
852
853
853
case TemplateDeductionResult::ConstraintsNotSatisfied:
854
854
// FIXME: Destroy the template argument list?
855
+ static_cast<CNSInfo *>(Data)->Satisfaction.~ConstraintSatisfaction();
855
856
Data = nullptr;
856
857
if (PartialDiagnosticAt *Diag = getSFINAEDiagnostic()) {
857
858
Diag->~PartialDiagnosticAt();
You can’t perform that action at this time.
0 commit comments