Skip to content

Commit 8c2d0c5

Browse files
committed
minor fix to a setter, NFC.
1 parent f71b5ed commit 8c2d0c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/AST/Expr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2162,7 +2162,7 @@ class CollectionExpr : public Expr {
21622162
unsigned getNumElements() const { return Elements.size(); }
21632163

21642164
bool isTypeDefaulted() const { return IsTypeDefaulted; }
2165-
void setIsTypeDefaulted(bool value = true) { IsTypeDefaulted = true; }
2165+
void setIsTypeDefaulted(bool value = true) { IsTypeDefaulted = value; }
21662166

21672167
SourceLoc getLBracketLoc() const { return LBracketLoc; }
21682168
SourceLoc getRBracketLoc() const { return RBracketLoc; }

0 commit comments

Comments
 (0)