[llvm] [ADT] Add implementations for avgFloor and avgCeil to APInt (PR #84431)

antoine moynault via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 15 03:46:17 PDT 2024


antmox wrote:

Hi, looks like this commit broke clang-arm64-windows-msvc-2stage bot:
https://lab.llvm.org/buildbot/#/builders/120/builds/6362
```
C:\Users\Tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\llvm\llvm\unittests\ADT\APIntTest.cpp(2921,9): error: call to constructor of 'APInt' is ambiguous
 2921 |   APInt ApUMax(32, UINT_MAX, false);
      |         ^      ~~~~~~~~~~~~~~~~~~~
C:\Users\Tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\llvm\llvm\include\llvm/ADT/APInt.h(109,3): note: candidate constructor
  109 |   APInt(unsigned numBits, uint64_t val, bool isSigned = false)
      |   ^
C:\Users\Tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\llvm\llvm\include\llvm/ADT/APInt.h(135,3): note: candidate constructor
  135 |   APInt(unsigned numBits, unsigned numWords, const uint64_t bigVal[]);
      |   ^
1 error generated.

```
Could you please look at this ?

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


More information about the llvm-commits mailing list