[clang] [Clang][Sema] Earlier type checking for builtin unary operators (PR #90500)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Tue May 14 11:23:33 PDT 2024


MaskRay wrote:

> This seems to [break something](https://lab.llvm.org/buildbot/#/builders/121/builds/41631) in LLVM... investigating

I've also noticed a stage-2-build issue. 

```
      llvm::any_of(LHS->users(),
                    [&](auto *U) {
                      return U != I &&
                             !(U->hasOneUser() && *U->users().begin() == I);
                    }) ||
```

```
llvm/lib/Transforms/Scalar/NaryReassociate.cpp:610:32: error: comparison of distinct pointer types ('auto *' and 'Instruction *')
  610 |                       return U != I &&
      |                              ~ ^  ~
```

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


More information about the cfe-commits mailing list