Skip to content

Commit f38ce6a

Browse files
authored
Merge pull request #26566 from gottesmm/pr-0dfd25ec9bb97734f301323813575473a2ee90f8
[gardening] Remove never read assignment.
2 parents d2445d5 + 2411429 commit f38ce6a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/IDE/IDERequests.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,8 @@ bool CursorInfoResolver::tryResolve(ValueDecl *D, TypeDecl *CtorTyRef,
111111
// Handle references to the implicitly generated vars in case statements
112112
// matching multiple patterns
113113
if (VD->isImplicit()) {
114-
if (auto * Parent = VD->getParentVarDecl()) {
114+
if (auto *Parent = VD->getParentVarDecl()) {
115115
D = Parent;
116-
VD = Parent;
117116
}
118117
}
119118
}

0 commit comments

Comments
 (0)