[clang] [Clang] Add `noalias` to `this` pointer in C++ constructors (PR #136792)

Chuanqi Xu via cfe-commits cfe-commits at lists.llvm.org
Tue May 13 01:39:35 PDT 2025


ChuanqiXu9 wrote:

I just got a case:

```
class A {
public:
   class B {
   public:
         B(A *);

         // some non static data fields
   };

   B b(this);
};
```

Does this a valid prove that this optimization is not valid ?

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


More information about the cfe-commits mailing list