Skip to content

Commit 8fe205d

Browse files
[Serialization] Remove an unnecessary cast (NFC) (#146986)
Lambda is already of CXXRecordDecl *.
1 parent afd20aa commit 8fe205d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/Serialization/ASTReader.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9463,8 +9463,7 @@ void ASTReader::AssignedLambdaNumbering(CXXRecordDecl *Lambda) {
94639463

94649464
// Keep track of this lambda so it can be merged with another lambda that
94659465
// is loaded later.
9466-
LambdaDeclarationsForMerging.insert(
9467-
{LambdaInfo, const_cast<CXXRecordDecl *>(Lambda)});
9466+
LambdaDeclarationsForMerging.insert({LambdaInfo, Lambda});
94689467
}
94699468

94709469
void ASTReader::LoadSelector(Selector Sel) {

0 commit comments

Comments
 (0)