[clang] [Clang] Correctly handle callees whose type is a Record type when classifying expressions (PR #68078)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 3 09:58:26 PDT 2023
================
@@ -1621,6 +1621,10 @@ QualType CallExpr::getCallReturnType(const ASTContext &Ctx) const {
// This should never be overloaded and so should never return null.
CalleeType = Expr::findBoundMemberType(Callee);
assert(!CalleeType.isNull());
+ } else if (CalleeType->isRecordType()) {
+ // If the Callee is a record type, then it is a not-yet-resolved
+ // dependent call to call operator of that type.
----------------
AaronBallman wrote:
```suggestion
// dependent call to the call operator of that type.
```
Minor grammar nit.
https://github.com/llvm/llvm-project/pull/68078
More information about the cfe-commits
mailing list