File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 21
21
#include " swift/Sema/ConstraintGraph.h"
22
22
#include " swift/Sema/ConstraintSystem.h"
23
23
#include " llvm/ADT/SetVector.h"
24
+ #include " llvm/Support/Debug.h"
24
25
#include " llvm/Support/raw_ostream.h"
25
26
#include < tuple>
26
27
28
+ #define DEBUG_TYPE " PotentialBindings"
29
+
27
30
using namespace swift ;
28
31
using namespace constraints ;
29
32
using namespace inference ;
@@ -1951,6 +1954,13 @@ void PotentialBindings::retract(Constraint *constraint) {
1951
1954
if (CS.isRecordingChanges ())
1952
1955
CS.recordChange (SolverTrail::Change::retractedBindings (TypeVar, constraint));
1953
1956
1957
+ LLVM_DEBUG (
1958
+ llvm::dbgs () << Constraints.size () << " " << Bindings.size () << " "
1959
+ << Protocols.size () << " " << Literals.size () << " "
1960
+ << AdjacentVars.size () << " " << DelayedBy.size () << " "
1961
+ << SubtypeOf.size () << " " << SupertypeOf.size () << " "
1962
+ << EquivalentTo.size () << " \n " );
1963
+
1954
1964
Bindings.erase (
1955
1965
llvm::remove_if (Bindings,
1956
1966
[&constraint](const PotentialBinding &binding) {
You can’t perform that action at this time.
0 commit comments