[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:
Doug Gregor
2019-11-14 15:41:38 -08:00
parent 9b9aa2377d
commit 2d915f60ab
5 changed files with 6 additions and 10 deletions

View File

@@ -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");
}