Skip to content

Commit 917783e

Browse files
committed
[ConstraintSystem] Don't try to eagerly deallocate fixes
`Fix` life-time is pretty limited as it is, and we'd have to distinguish between standalone fixes and ones attached to constraints, which is not worth the trouble. Resolves: rdar://problem/43285774
1 parent d962c83 commit 917783e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/Sema/CSSimplify.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4930,8 +4930,6 @@ bool ConstraintSystem::recordFix(ConstraintFix *fix) {
49304930

49314931
if (existingFix == Fixes.end())
49324932
Fixes.push_back(fix);
4933-
else // if fix couldn't be recorded, it means that it's no longer needed.
4934-
Allocator.Deallocate(fix);
49354933

49364934
return false;
49374935
}

0 commit comments

Comments
 (0)