mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #82430 from xedin/issue-82397
[CSSimplify] Prevent `missing call` fix from recording fixes while ma…
This commit is contained in:
@@ -5365,6 +5365,11 @@ bool ConstraintSystem::repairFailures(
|
||||
matchKind = ConstraintKind::Conversion;
|
||||
}
|
||||
|
||||
// FIXME: There is currently no easy way to avoid attempting
|
||||
// fixes, matchTypes do not propagate `TMF_ApplyingFix` flag.
|
||||
llvm::SaveAndRestore<ConstraintSystemOptions> options(
|
||||
Options, Options - ConstraintSystemFlags::AllowFixes);
|
||||
|
||||
auto result = matchTypes(resultType, dstType, matchKind,
|
||||
TypeMatchFlags::TMF_ApplyingFix, locator);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user