Skip to content

Commit 23e66f7

Browse files
authored
Merge pull request #62661 from valeriyvan/Refactoring
[Refactoring] Fix assert incorrect equality condition to same value
2 parents 2b27330 + c48a638 commit 23e66f7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Refactoring/Refactoring.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,8 +661,7 @@ class RenameRangeCollector : public IndexDataConsumer {
661661
assert(existingLoc->OldName == loc->OldName &&
662662
existingLoc->NewName == loc->NewName &&
663663
existingLoc->IsFunctionLike == loc->IsFunctionLike &&
664-
existingLoc->IsNonProtocolType ==
665-
existingLoc->IsNonProtocolType &&
664+
existingLoc->IsNonProtocolType == loc->IsNonProtocolType &&
666665
"Asked to do a different rename for the same location?");
667666
}
668667
}

0 commit comments

Comments
 (0)