File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1497,7 +1497,7 @@ class Solution {
1497
1497
DeclContext *getDC () const ;
1498
1498
1499
1499
// / The set of type bindings.
1500
- llvm::DenseMap <TypeVariableType *, Type> typeBindings;
1500
+ llvm::MapVector <TypeVariableType *, Type> typeBindings;
1501
1501
1502
1502
// / The set of overload choices along with their types.
1503
1503
llvm::DenseMap<ConstraintLocator *, SelectedOverload> overloadChoices;
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ void KeyPathTypeCheckCompletionCallback::sawSolutionImpl(
53
53
return Entry.first ->getImpl ().getLocator () == RootLocator;
54
54
});
55
55
if (BaseVariableTypeBinding != S.typeBindings .end ()) {
56
- BaseType = S.simplifyType (BaseVariableTypeBinding->getSecond () );
56
+ BaseType = S.simplifyType (BaseVariableTypeBinding->second );
57
57
}
58
58
}
59
59
} else {
Original file line number Diff line number Diff line change @@ -1872,7 +1872,7 @@ size_t Solution::getTotalMemory() const {
1872
1872
return *TotalMemory;
1873
1873
1874
1874
const_cast <Solution *>(this )->TotalMemory
1875
- = sizeof (*this ) + typeBindings. getMemorySize ( ) +
1875
+ = sizeof (*this ) + size_in_bytes (typeBindings ) +
1876
1876
overloadChoices.getMemorySize () +
1877
1877
ConstraintRestrictions.getMemorySize () +
1878
1878
(Fixes.size () * sizeof (void *)) + DisjunctionChoices.getMemorySize () +
You can’t perform that action at this time.
0 commit comments