mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Constraint solver] Remove expression from the constructor.
Rather than setting up the constraint solver with a single expression (that gets recorded for parents/depths), record each expression that goes through constraint generation.
This commit is contained in:
@@ -75,16 +75,11 @@ ExpressionTimer::~ExpressionTimer() {
|
||||
|
||||
|
||||
ConstraintSystem::ConstraintSystem(DeclContext *dc,
|
||||
ConstraintSystemOptions options,
|
||||
Expr *expr)
|
||||
ConstraintSystemOptions options)
|
||||
: Context(dc->getASTContext()), DC(dc), Options(options),
|
||||
Arena(dc->getASTContext(), Allocator),
|
||||
CG(*new ConstraintGraph(*this))
|
||||
{
|
||||
if (expr) {
|
||||
InputExprs.insert(expr);
|
||||
}
|
||||
|
||||
assert(DC && "context required");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user