Skip to content

Commit 5900c9f

Browse files
author
Salinas, David
authored
Cherry-pick missing part of [Clang][Sema] Revert changes to operator=… (llvm#1529)
2 parents 847c570 + c3c6266 commit 5900c9f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/Sema/SemaExprMember.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -987,6 +987,8 @@ Sema::BuildMemberReferenceExpr(Expr *BaseExpr, QualType BaseExprType,
987987
// arrow operator was used with a dependent non-pointer object expression,
988988
// build a CXXDependentScopeMemberExpr.
989989
if (R.wasNotFoundInCurrentInstantiation() ||
990+
(IsArrow && !BaseExprType->isPointerType() &&
991+
BaseExprType->isDependentType()) ||
990992
(R.getLookupName().getCXXOverloadedOperator() == OO_Equal &&
991993
(SS.isSet() ? SS.getScopeRep()->isDependent()
992994
: BaseExprType->isDependentType())))

0 commit comments

Comments
 (0)