[clang] Delete dead value dependence check. (PR #211706)

Oliver Hunt via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 23 23:50:21 PDT 2026


ojhunt wrote:

> I can technically write testcases that are affected by this patch:
> 
> ```
> template<int x> struct A {
>   static const int xx = 0;
>   void f(decltype(*(int(*)[xx])0));
>   void f(decltype(*(int(*)[*&xx])0));
> };
> ```
> 
> That said, I can't come up with any way to cause a practical issue.

What is the actual change in the above? (just a question of curiousity)

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


More information about the cfe-commits mailing list