Skip to content

Commit 614f618

Browse files
committed
[Constraint system] Allow recording pattern types in the system.
1 parent efd4152 commit 614f618

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Sema/ConstraintSystem.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -774,8 +774,8 @@ struct Score {
774774

775775
/// An AST node that can gain type information while solving.
776776
using TypedNode =
777-
llvm::PointerUnion3<const Expr *, const TypeLoc *,
778-
const VarDecl *>;
777+
llvm::PointerUnion4<const Expr *, const TypeLoc *,
778+
const VarDecl *, const Pattern *>;
779779

780780
/// Display a score.
781781
llvm::raw_ostream &operator<<(llvm::raw_ostream &out, const Score &score);
@@ -1164,7 +1164,7 @@ class SolutionApplicationTarget {
11641164
Pattern *pattern = nullptr;
11651165

11661166
/// Whether the expression result will be discarded at the end.
1167-
bool isDiscarded;
1167+
bool isDiscarded = false;
11681168
} expression;
11691169

11701170
struct {

0 commit comments

Comments
 (0)