[PATCH] D113689: [llvm][ubsan] Inclusive language: replace use of blacklist HandleLLVMOptions.cmake
Zarko Todorovski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 11 10:09:19 PST 2021
ZarkoCA created this revision.
ZarkoCA added reviewers: fhahn, vitalybuka, eugenis, quinnp.
Herald added a subscriber: mgorny.
ZarkoCA requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This patch changes it to ignorelist and contains a filename change for the
.txt file that's called.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D113689
Files:
llvm/cmake/modules/HandleLLVMOptions.cmake
llvm/utils/sanitizers/ubsan_blacklist.txt
llvm/utils/sanitizers/ubsan_ignorelist.txt
Index: llvm/utils/sanitizers/ubsan_ignorelist.txt
===================================================================
--- llvm/utils/sanitizers/ubsan_ignorelist.txt
+++ llvm/utils/sanitizers/ubsan_ignorelist.txt
@@ -1,4 +1,4 @@
-# This blacklist should be applied when LLVM is built
+# This ignorelist should be applied when LLVM is built
# with -fsanitize=undefined instrumentation. It exists
# because libstdc++ has some undefined behavior issues
# in some of the headers, in particular, stl_tree.h.
Index: llvm/cmake/modules/HandleLLVMOptions.cmake
===================================================================
--- llvm/cmake/modules/HandleLLVMOptions.cmake
+++ llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -870,9 +870,9 @@
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}"
+ set(IGNORELIST_FILE "${CMAKE_SOURCE_DIR}/utils/sanitizers/ubsan_ignorelist.txt")
+ if (EXISTS "${IGNORELIST_FILE}")
+ append("-fsanitize-ignorelist=${IGNORELIST_FILE}"
CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
endif()
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113689.386568.patch
Type: text/x-patch
Size: 1296 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211111/bc974408/attachment.bin>
More information about the llvm-commits
mailing list