Skip to content

Commit 133d5a7

Browse files
lattnerDougGregor
authored andcommitted
minor fix to a setter, NFC.
(cherry picked from commit 8c2d0c5)
1 parent 674e16e commit 133d5a7

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)