File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -7538,13 +7538,7 @@ ProtocolConformanceRef Solution::resolveConformance(
7538
7538
}
7539
7539
7540
7540
Type Solution::getType (const Expr *expr) const {
7541
- auto result = llvm::find_if (
7542
- nodeTypes, [&](const std::pair<TypedNode, Type> &node) -> bool {
7543
- if (auto *e = node.first .dyn_cast <const Expr *>())
7544
- return expr == e;
7545
- return false ;
7546
- });
7547
-
7541
+ auto result = nodeTypes.find (expr);
7548
7542
if (result != nodeTypes.end ())
7549
7543
return result->second ;
7550
7544
Original file line number Diff line number Diff line change @@ -1484,7 +1484,7 @@ class ConstraintSystem {
1484
1484
// / nodes themselves. This allows us to typecheck and
1485
1485
// / run through various diagnostics passes without actually mutating
1486
1486
// / the types on the nodes.
1487
- llvm::DenseMap <TypedNode, Type> NodeTypes;
1487
+ llvm::MapVector <TypedNode, Type> NodeTypes;
1488
1488
llvm::DenseMap<std::pair<const KeyPathExpr *, unsigned >, TypeBase *>
1489
1489
KeyPathComponentTypes;
1490
1490
You can’t perform that action at this time.
0 commit comments