Skip to content

Commit 1484360

Browse files
committed
CS node->type map requires ordering because it can be partially undone,
but Solution node->type map is all or nothing, so can be cheaper.
1 parent db9cf4c commit 1484360

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/ConstraintSystem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ class Solution {
10161016
llvm::SmallPtrSet<ConstraintLocator *, 2> DefaultedConstraints;
10171017

10181018
/// The node -> type mappings introduced by this solution.
1019-
llvm::MapVector<ASTNode, Type> nodeTypes;
1019+
llvm::DenseMap<ASTNode, Type> nodeTypes;
10201020

10211021
/// Contextual types introduced by this solution.
10221022
std::vector<std::pair<ASTNode, ContextualTypeInfo>> contextualTypes;

0 commit comments

Comments
 (0)