[PATCH] D49558: [UBSan] Also use blacklist for 'Address; Undefined' setting
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 20 03:17:42 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL337539: [UBSan] Also use blacklist for 'Address; Undefined' setting (authored by fhahn, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D49558?vs=156315&id=156462#toc
Repository:
rL LLVM
https://reviews.llvm.org/D49558
Files:
llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
Index: llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
===================================================================
--- llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
+++ llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
@@ -670,11 +670,6 @@
append_common_sanitizer_flags()
append("-fsanitize=undefined -fno-sanitize=vptr,function -fno-sanitize-recover=all"
CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
- set(BLACKLIST_FILE "${CMAKE_SOURCE_DIR}/utils/sanitizers/ubsan_blacklist.txt")
- if (EXISTS "${BLACKLIST_FILE}")
- append("-fsanitize-blacklist=${BLACKLIST_FILE}"
- CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
- endif()
elseif (LLVM_USE_SANITIZER STREQUAL "Thread")
append_common_sanitizer_flags()
append("-fsanitize=thread" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
@@ -706,6 +701,13 @@
if (LLVM_USE_SANITIZE_COVERAGE)
append("-fsanitize=fuzzer-no-link" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
endif()
+ if (LLVM_USE_SANITIZER MATCHES ".*Undefined.*")
+ set(BLACKLIST_FILE "${CMAKE_SOURCE_DIR}/utils/sanitizers/ubsan_blacklist.txt")
+ if (EXISTS "${BLACKLIST_FILE}")
+ append("-fsanitize-blacklist=${BLACKLIST_FILE}"
+ CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
+ endif()
+ endif()
endif()
# Turn on -gsplit-dwarf if requested
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49558.156462.patch
Type: text/x-patch
Size: 1309 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180720/0be3805a/attachment.bin>
More information about the llvm-commits
mailing list