[libcxx-commits] [libcxx] d563df8 - Revert "[msan][libcxx] Enable -fsanitize-memory-param-retval"
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Apr 30 06:19:25 PDT 2022
Author: Mark de Wever
Date: 2022-04-30T15:19:16+02:00
New Revision: d563df88e9edb28cbc5a499ce3e7ff16cf7fbf5a
URL: https://github.com/llvm/llvm-project/commit/d563df88e9edb28cbc5a499ce3e7ff16cf7fbf5a
DIFF: https://github.com/llvm/llvm-project/commit/d563df88e9edb28cbc5a499ce3e7ff16cf7fbf5a.diff
LOG: Revert "[msan][libcxx] Enable -fsanitize-memory-param-retval"
This reverts commit beff64ee44acec4e7bfbc2ab165acba7579a6bb7.
The original commit was reviewed as D123979.
This commit caused the libc++ pre-commit CI to fail
https://buildkite.com/llvm-project/libcxx-ci/builds/10483
Reviewed By: #libc, Mordante
Differential Revision: https://reviews.llvm.org/D124713
Added:
Modified:
libcxx/CMakeLists.txt
libcxx/utils/libcxx/test/params.py
Removed:
################################################################################
diff --git a/libcxx/CMakeLists.txt b/libcxx/CMakeLists.txt
index 4314bc2eddb8d..9ad93a39b43f3 100644
--- a/libcxx/CMakeLists.txt
+++ b/libcxx/CMakeLists.txt
@@ -733,7 +733,7 @@ function(get_sanitizer_flags OUT_VAR USE_SANITIZER)
if (USE_SANITIZER STREQUAL "Address")
append_flags(SANITIZER_FLAGS "-fsanitize=address")
elseif (USE_SANITIZER MATCHES "Memory(WithOrigins)?")
- append_flags(SANITIZER_FLAGS -fsanitize=memory -fsanitize-memory-param-retval)
+ append_flags(SANITIZER_FLAGS -fsanitize=memory)
if (USE_SANITIZER STREQUAL "MemoryWithOrigins")
append_flags(SANITIZER_FLAGS "-fsanitize-memory-track-origins")
endif()
diff --git a/libcxx/utils/libcxx/test/params.py b/libcxx/utils/libcxx/test/params.py
index 79b58a04413b8..2c18aba41af63 100644
--- a/libcxx/utils/libcxx/test/params.py
+++ b/libcxx/utils/libcxx/test/params.py
@@ -146,9 +146,9 @@ def getStdFlag(cfg, std):
AddFlag('-fsanitize=address') if sanitizer == 'Address' else None,
AddFeature('asan') if sanitizer == 'Address' else None,
- AddFlag('-fsanitize=memory -fsanitize-memory-param-retval') if sanitizer in ['Memory', 'MemoryWithOrigins'] else None,
- AddFeature('msan') if sanitizer in ['Memory', 'MemoryWithOrigins'] else None,
- AddFlag('-fsanitize-memory-track-origins') if sanitizer == 'MemoryWithOrigins' else None,
+ AddFlag('-fsanitize=memory') if sanitizer in ['Memory', 'MemoryWithOrigins'] else None,
+ AddFeature('msan') if sanitizer in ['Memory', 'MemoryWithOrigins'] else None,
+ AddFlag('-fsanitize-memory-track-origins') if sanitizer == 'MemoryWithOrigins' else None,
AddFlag('-fsanitize=thread') if sanitizer == 'Thread' else None,
AddFeature('tsan') if sanitizer == 'Thread' else None,
More information about the libcxx-commits
mailing list