[llvm-branch-commits] [compiler-rt] 2c6c3e4 - [asan] Fix "no matching function" on GCC

Tom Stellard via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Dec 20 21:53:43 PST 2021


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);


        


More information about the llvm-branch-commits mailing list