diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake index 19d6c58d991b7c..76723be696e51c 100644 --- a/llvm/cmake/modules/HandleLLVMOptions.cmake +++ b/llvm/cmake/modules/HandleLLVMOptions.cmake @@ -85,8 +85,8 @@ if( LLVM_ENABLE_ASSERTIONS ) endif() # Enable assertions in libstdc++. add_compile_definitions(_GLIBCXX_ASSERTIONS) - # Enable assertions in libc++. - add_compile_definitions(_LIBCPP_ENABLE_ASSERTIONS) + # Enable the hardened mode in libc++. + add_compile_definitions(_LIBCPP_ENABLE_HARDENED_MODE) endif() if(LLVM_ENABLE_EXPENSIVE_CHECKS)