[llvm] 566431c - [NFC] Improve the comment about `std::min_element` being `constepxr` in libstdc++

Vlad Serebrennikov via llvm-commits llvm-commits at lists.llvm.org
Tue May 21 00:17:30 PDT 2024


Author: Vlad Serebrennikov
Date: 2024-05-21T10:17:24+03:00
New Revision: 566431ce087d34eaec390cff13251e743688928f

URL: https://github.com/llvm/llvm-project/commit/566431ce087d34eaec390cff13251e743688928f
DIFF: https://github.com/llvm/llvm-project/commit/566431ce087d34eaec390cff13251e743688928f.diff

LOG: [NFC] Improve the comment about `std::min_element` being `constepxr` in libstdc++

Added: 
    

Modified: 
    llvm/cmake/modules/HandleLLVMOptions.cmake

Removed: 
    


################################################################################
diff  --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake
index 185266c0861e8..d16641d831900 100644
--- a/llvm/cmake/modules/HandleLLVMOptions.cmake
+++ b/llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -158,7 +158,7 @@ if(LLVM_ENABLE_EXPENSIVE_CHECKS)
   endif()
   add_compile_definitions(EXPENSIVE_CHECKS)
 
-  # In some libstdc++ versions, std::min_element is not constexpr when
+  # In libstdc++ 9 and earlier, std::min_element is not constexpr when
   # _GLIBCXX_DEBUG is enabled.
   CHECK_CXX_SOURCE_COMPILES("
     #define _GLIBCXX_DEBUG


        


More information about the llvm-commits mailing list