Author: Vitaly Buka
Date: 2021-12-20T21:50:02-08:00
New Revision: 2c6c3e4b713b05f249d75c3345785b6dad11c970

URL: 
https://github.com/llvm/llvm-project/commit/2c6c3e4b713b05f249d75c3345785b6dad11c970
DIFF: 
https://github.com/llvm/llvm-project/commit/2c6c3e4b713b05f249d75c3345785b6dad11c970.diff

LOG: [asan] Fix "no matching function" on GCC

(cherry picked from commit 4b768eeb976ec15a2701f9a7b3eac2b0b43e8a7d)

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 a2082ed082154..101c35fa10be6 100644
--- a/compiler-rt/test/asan/TestCases/Posix/unpoison-alternate-stack.cpp
+++ b/compiler-rt/test/asan/TestCases/Posix/unpoison-alternate-stack.cpp
@@ -139,7 +139,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);


        
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to