We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efd4152 commit 614f618Copy full SHA for 614f618
lib/Sema/ConstraintSystem.h
@@ -774,8 +774,8 @@ struct Score {
774
775
/// An AST node that can gain type information while solving.
776
using TypedNode =
777
- llvm::PointerUnion3<const Expr *, const TypeLoc *,
778
- const VarDecl *>;
+ llvm::PointerUnion4<const Expr *, const TypeLoc *,
+ const VarDecl *, const Pattern *>;
779
780
/// Display a score.
781
llvm::raw_ostream &operator<<(llvm::raw_ostream &out, const Score &score);
@@ -1164,7 +1164,7 @@ class SolutionApplicationTarget {
1164
Pattern *pattern = nullptr;
1165
1166
/// Whether the expression result will be discarded at the end.
1167
- bool isDiscarded;
+ bool isDiscarded = false;
1168
} expression;
1169
1170
struct {
0 commit comments