Skip to content

Commit 6303852

Browse files
committed
AST: Don't clone TypeReprs in ParamDecl::cloneWithoutType()
1 parent ae77d22 commit 6303852

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/AST/Decl.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6112,8 +6112,6 @@ ParamDecl *ParamDecl::cloneWithoutType(const ASTContext &Ctx, ParamDecl *PD) {
61126112
nullptr, PD->DefaultValueAndFlags.getInt());
61136113
Clone->Bits.ParamDecl.defaultArgumentKind =
61146114
PD->Bits.ParamDecl.defaultArgumentKind;
6115-
if (auto *repr = PD->getTypeRepr())
6116-
Clone->setTypeRepr(repr->clone(Ctx));
61176115

61186116
Clone->setSpecifier(PD->getSpecifier());
61196117
Clone->setImplicitlyUnwrappedOptional(PD->isImplicitlyUnwrappedOptional());

0 commit comments

Comments
 (0)