[compiler-rt] 4b768ee - [asan] Fix "no matching function" on GCC
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 12 17:42:33 PST 2021
Author: Vitaly Buka
Date: 2021-11-12T17:42:25-08:00
New Revision: 4b768eeb976ec15a2701f9a7b3eac2b0b43e8a7d
URL: https://github.com/llvm/llvm-project/commit/4b768eeb976ec15a2701f9a7b3eac2b0b43e8a7d
DIFF: https://github.com/llvm/llvm-project/commit/4b768eeb976ec15a2701f9a7b3eac2b0b43e8a7d.diff
LOG: [asan] Fix "no matching function" on GCC
Added:
Modified:
compiler-rt/test/asan/TestCases/Posix/unpoison-alternate-stack.cpp
Removed:
################################################################################
diff --git a/compiler-rt/test/asan/TestCases/Posix/unpoison-alternate-stack.cpp b/compiler-rt/test/asan/TestCases/Posix/unpoison-alternate-stack.cpp
index 50d28ddf84c2..7febc0651910 100644
--- a/compiler-rt/test/asan/TestCases/Posix/unpoison-alternate-stack.cpp
+++ b/compiler-rt/test/asan/TestCases/Posix/unpoison-alternate-stack.cpp
@@ -136,7 +136,7 @@ void *threadFun(void *AltStack) {
int main() {
size_t const PageSize = sysconf(_SC_PAGESIZE);
// The Solaris defaults of 4k (32-bit) and 8k (64-bit) are too small.
- size_t const MinStackSize = std::max(PTHREAD_STACK_MIN, 16 * 1024);
+ size_t const MinStackSize = std::max<size_t>(PTHREAD_STACK_MIN, 16 * 1024);
// To align the alternate stack, we round this up to page_size.
size_t const DefaultStackSize =
(MinStackSize - 1 + PageSize) & ~(PageSize - 1);
More information about the llvm-commits
mailing list