yingopq wrote:

> FWIW, this appears to fix a compilation error in LLVM for `mips-netbsd`:
> 
> ```
> /home/alexrp/Source/ziglang/zig-bootstrap/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:444:26:
>  error: no matching function for call to 'min'
>   444 |     UsedByIndices.resize(std::min(UsedByIndices.size(), LastLUIdx));
> ```
> 
> (No idea why that only happened for NetBSD and not e.g. Linux.)

In the file `clang/lib/Basic/TargetInfo.cpp`, we can see redefine in function 
`adjust` when `Opts.OpenCL` is true.
```
    PtrDiffType = Is32BitArch ? SignedInt : SignedLong;
    IntPtrType = Is32BitArch ? SignedInt : SignedLong;
```
I think this maybe the reason about your question.

https://github.com/llvm/llvm-project/pull/145158
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to