@@ -266,7 +266,7 @@ void ConstraintSystem::addConversionRestriction(
266
266
if (!inserted)
267
267
return ;
268
268
269
- if (isRecordingChanges () ) {
269
+ if (solverState ) {
270
270
recordChange (SolverTrail::Change::addedConversionRestriction (
271
271
srcType, dstType));
272
272
}
@@ -284,7 +284,7 @@ void ConstraintSystem::addFix(ConstraintFix *fix) {
284
284
if (!inserted)
285
285
return ;
286
286
287
- if (isRecordingChanges () )
287
+ if (solverState )
288
288
recordChange (SolverTrail::Change::addedFix (fix));
289
289
}
290
290
@@ -304,7 +304,7 @@ void ConstraintSystem::recordDisjunctionChoice(
304
304
return ;
305
305
}
306
306
307
- if (isRecordingChanges () ) {
307
+ if (solverState ) {
308
308
recordChange (SolverTrail::Change::recordedDisjunctionChoice (
309
309
locator, index));
310
310
}
@@ -316,7 +316,7 @@ void ConstraintSystem::recordAppliedDisjunction(
316
316
auto inserted = AppliedDisjunctions.insert (
317
317
std::make_pair (locator, fnType));
318
318
if (inserted.second ) {
319
- if (isRecordingChanges () ) {
319
+ if (solverState ) {
320
320
recordChange (SolverTrail::Change::recordedAppliedDisjunction (locator));
321
321
}
322
322
}
@@ -854,7 +854,7 @@ void ConstraintSystem::recordOpenedExistentialType(
854
854
ConstraintLocator *locator, OpenedArchetypeType *opened) {
855
855
bool inserted = OpenedExistentialTypes.insert ({locator, opened}).second ;
856
856
if (inserted) {
857
- if (isRecordingChanges () )
857
+ if (solverState )
858
858
recordChange (SolverTrail::Change::recordedOpenedExistentialType (locator));
859
859
}
860
860
}
@@ -895,7 +895,7 @@ void ConstraintSystem::recordPackExpansionEnvironment(
895
895
ConstraintLocator *locator, std::pair<UUID, Type> uuidAndShape) {
896
896
bool inserted = PackExpansionEnvironments.insert ({locator, uuidAndShape}).second ;
897
897
if (inserted) {
898
- if (isRecordingChanges () ) {
898
+ if (solverState ) {
899
899
recordChange (
900
900
SolverTrail::Change::recordedPackExpansionEnvironment (locator));
901
901
}
@@ -913,7 +913,7 @@ void ConstraintSystem::addPackEnvironment(PackElementExpr *packElement,
913
913
bool inserted =
914
914
PackEnvironments.insert ({packElement, packExpansion}).second ;
915
915
if (inserted) {
916
- if (isRecordingChanges () )
916
+ if (solverState )
917
917
recordChange (SolverTrail::Change::recordedPackEnvironment (packElement));
918
918
}
919
919
}
@@ -1279,7 +1279,7 @@ void ConstraintSystem::recordOpenedPackExpansionType(PackExpansionType *expansio
1279
1279
TypeVariableType *expansionVar) {
1280
1280
bool inserted = OpenedPackExpansionTypes.insert ({expansion, expansionVar}).second ;
1281
1281
if (inserted) {
1282
- if (isRecordingChanges () )
1282
+ if (solverState )
1283
1283
recordChange (SolverTrail::Change::recordedOpenedPackExpansionType (expansion));
1284
1284
}
1285
1285
}
@@ -1688,7 +1688,7 @@ void ConstraintSystem::recordOpenedType(
1688
1688
ConstraintLocator *locator, ArrayRef<OpenedType> openedTypes) {
1689
1689
bool inserted = OpenedTypes.insert ({locator, openedTypes}).second ;
1690
1690
if (inserted) {
1691
- if (isRecordingChanges () )
1691
+ if (solverState )
1692
1692
recordChange (SolverTrail::Change::recordedOpenedTypes (locator));
1693
1693
}
1694
1694
}
@@ -7443,7 +7443,7 @@ void ConstraintSystem::recordFixedRequirement(GenericTypeParamType *GP,
7443
7443
bool inserted = FixedRequirements.insert (
7444
7444
std::make_tuple (GP, reqKind, requirementTy.getPointer ())).second ;
7445
7445
if (inserted) {
7446
- if (isRecordingChanges () ) {
7446
+ if (solverState ) {
7447
7447
recordChange (SolverTrail::Change::addedFixedRequirement (
7448
7448
GP, reqKind, requirementTy));
7449
7449
}
0 commit comments