[clang] [clang] static operators should evaluate object argument (PR #68485)

via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 10 00:22:22 PDT 2023


================
@@ -14935,15 +14935,15 @@ ExprResult Sema::CreateOverloadedArraySubscriptExpr(SourceLocation LLoc,
         CXXMethodDecl *Method = cast<CXXMethodDecl>(FnDecl);
         SmallVector<Expr *, 2> MethodArgs;
 
-        // Handle 'this' parameter if the selected function is not static.
+        // Initialize the explicit / implicit object parameter.
----------------
cor3ntin wrote:

```suggestion
        // Initialize the object parameter.
```

https://github.com/llvm/llvm-project/pull/68485


More information about the cfe-commits mailing list