[compiler-rt] [sanitizer] Fix type in some Min() calls (PR #119248)
Stefan Schulze Frielinghaus via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 9 11:03:49 PST 2024
stefan-sf-ibm wrote:
Porting commits
9a156f6b2b0c892d8713ba907f07f027b24953d8
ce44640fe29550461120d22b0358e6cac4aed822
6dec33834d1fd89f16e271dde9607c1de9554144
to GCC reveals some left overs:
```
/gcc/src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:535:49: error: no matching function for call to 'Min(__sanitizer::uptr, __sanitizer::usize&)'
535 | COMMON_INTERCEPTOR_READ_RANGE((ctx), (s1), Min(i1 + 1, size));
| ~~~^~~~~~~~~~~~~~
/gcc/src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:598:49: error: no matching function for call to 'Min(__sanitizer::uptr, __sanitizer::usize&)'
598 | COMMON_INTERCEPTOR_READ_RANGE((ctx), (s1), Min(i1 + 1, size));
| ~~~^~~~~~~~~~~~~~
/gcc/src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:599:49: error: no matching function for call to 'Min(__sanitizer::uptr, __sanitizer::usize&)'
599 | COMMON_INTERCEPTOR_READ_RANGE((ctx), (s2), Min(i2 + 1, size));
| ~~~^~~~~~~~~~~~~~
/gcc/src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:860:49: error: no matching function for call to 'Min(__sanitizer::uptr, __sanitizer::usize&)'
860 | COMMON_INTERCEPTOR_READ_RANGE(ctx, s1, Min(i + 1, size));
| ~~~^~~~~~~~~~~~~
/gcc/src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:861:49: error: no matching function for call to 'Min(__sanitizer::uptr, __sanitizer::usize&)'
861 | COMMON_INTERCEPTOR_READ_RANGE(ctx, s2, Min(i + 1, size));
| ~~~^~~~~~~~~~~~~
```
/cc @vitalybuka
https://github.com/llvm/llvm-project/pull/119248
More information about the llvm-commits
mailing list