Skip to content

Commit 8bfb232

Browse files
committed
[AST] Always initialize 'TypeRepr *' in TupleTypeElement
1 parent 2ec16f0 commit 8bfb232

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/AST/TypeRepr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ struct TupleTypeReprElement {
653653
TypeRepr *Type;
654654
SourceLoc TrailingCommaLoc;
655655

656-
TupleTypeReprElement() {}
656+
TupleTypeReprElement(): Type(nullptr) {}
657657
TupleTypeReprElement(TypeRepr *Type): Type(Type) {}
658658
};
659659

0 commit comments

Comments
 (0)