Skip to content

Commit e4d3eaa

Browse files
committed
[ConstraintSystem] Don't store base constraint system in shrink candidate
Since there is no more sub-expression re-typechecking solver wouldn't be trying to ran shrink on sub-expressions.
1 parent 7c19d1c commit e4d3eaa

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/Sema/ConstraintSystem.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,17 +1693,14 @@ class ConstraintSystem {
16931693
DeclContext *DC;
16941694
llvm::BumpPtrAllocator &Allocator;
16951695

1696-
ConstraintSystem &BaseCS;
1697-
16981696
// Contextual Information.
16991697
Type CT;
17001698
ContextualTypePurpose CTP;
17011699

17021700
public:
17031701
Candidate(ConstraintSystem &cs, Expr *expr, Type ct = Type(),
17041702
ContextualTypePurpose ctp = ContextualTypePurpose::CTP_Unused)
1705-
: E(expr), DC(cs.DC), Allocator(cs.Allocator), BaseCS(cs),
1706-
CT(ct), CTP(ctp) {}
1703+
: E(expr), DC(cs.DC), Allocator(cs.Allocator), CT(ct), CTP(ctp) {}
17071704

17081705
/// Return underlying expression.
17091706
Expr *getExpr() const { return E; }

0 commit comments

Comments
 (0)