llvm.org GIT mirror llvm / 73275fd
Enabled -fsanitize-address-use-after-scope for -DLLVM_USE_SANITIZER=Address Subscribers: mgorny, llvm-commits Differential Revision: https://reviews.llvm.org/D28823 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292256 91177308-0d34-0410-b5e6-96231b3b80d8 Vitaly Buka 3 years ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
587587 else()
588588 message(FATAL_ERROR "LLVM_USE_SANITIZER is not supported on this platform.")
589589 endif()
590 if (LLVM_USE_SANITIZER MATCHES "(Undefined;)?Address(;Undefined)?")
591 append("-fsanitize-address-use-after-scope" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
592 endif()
590593 if (LLVM_USE_SANITIZE_COVERAGE)
591594 append("-fsanitize-coverage=trace-pc-guard,indirect-calls,trace-cmp" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
592595 endif()