Skip to content

Commit 5e6e51b

Browse files
[Sema] Remove an unnecessary cast (NFC) (#146703)
The only use of Receiver is to initialize RecExpr. This patch renames Receiver to RecExpr while removing the cast statement.
1 parent aa8e1bc commit 5e6e51b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/lib/Sema/SemaCodeComplete.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8499,13 +8499,11 @@ void SemaCodeCompletion::CodeCompleteObjCClassMessage(
84998499
}
85008500

85018501
void SemaCodeCompletion::CodeCompleteObjCInstanceMessage(
8502-
Scope *S, Expr *Receiver, ArrayRef<const IdentifierInfo *> SelIdents,
8502+
Scope *S, Expr *RecExpr, ArrayRef<const IdentifierInfo *> SelIdents,
85038503
bool AtArgumentExpression, ObjCInterfaceDecl *Super) {
85048504
typedef CodeCompletionResult Result;
85058505
ASTContext &Context = getASTContext();
85068506

8507-
Expr *RecExpr = static_cast<Expr *>(Receiver);
8508-
85098507
// If necessary, apply function/array conversion to the receiver.
85108508
// C99 6.7.5.3p[7,8].
85118509
if (RecExpr) {

0 commit comments

Comments
 (0)