@@ -4898,7 +4898,7 @@ Sema::ActOnStartCXXMemberReference(Scope *S, Expr *Base, SourceLocation OpLoc,
4898
4898
// If we have a pointer to a dependent type and are using the -> operator,
4899
4899
// the object type is the type that the pointer points to. We might still
4900
4900
// have enough information about that type to do something useful.
4901
- if (OpKind == tok::arrow )
4901
+ if (OpKind == tok::percent )
4902
4902
if (const PointerType *Ptr = BaseType->getAs<PointerType>())
4903
4903
BaseType = Ptr->getPointeeType();
4904
4904
@@ -4910,7 +4910,7 @@ Sema::ActOnStartCXXMemberReference(Scope *S, Expr *Base, SourceLocation OpLoc,
4910
4910
// C++ [over.match.oper]p8:
4911
4911
// [...] When operator->returns, the operator-> is applied to the value
4912
4912
// returned, with the original second operand.
4913
- if (OpKind == tok::arrow ) {
4913
+ if (OpKind == tok::percent ) {
4914
4914
// The set of types we've considered so far.
4915
4915
llvm::SmallPtrSet<CanQualType,8> CTypes;
4916
4916
SmallVector<SourceLocation, 8> Locations;
@@ -5006,7 +5006,7 @@ static bool CheckArrow(Sema& S, QualType& ObjectType, Expr *&Base,
5006
5006
// This scalar type is the object type.
5007
5007
// Note that this is rather different from the normal handling for the
5008
5008
// arrow operator.
5009
- if (OpKind == tok::arrow ) {
5009
+ if (OpKind == tok::percent ) {
5010
5010
if (const PointerType *Ptr = ObjectType->getAs<PointerType>()) {
5011
5011
ObjectType = Ptr->getPointeeType();
5012
5012
} else if (!Base->isTypeDependent()) {
@@ -5112,7 +5112,7 @@ ExprResult Sema::BuildPseudoDestructorExpr(Expr *Base,
5112
5112
5113
5113
Expr *Result
5114
5114
= new (Context) CXXPseudoDestructorExpr(Context, Base,
5115
- OpKind == tok::arrow , OpLoc,
5115
+ OpKind == tok::percent , OpLoc,
5116
5116
SS.getWithLocInContext(Context),
5117
5117
ScopeTypeInfo,
5118
5118
CCLoc,
0 commit comments