forked from OSchip/llvm-project
Revert "[msan][libcxx] Enable -fsanitize-memory-param-retval"
This reverts commit beff64ee44
.
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
This commit is contained in:
parent
40a2e35599
commit
d563df88e9
|
@ -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()
|
||||
|
|
|
@ -146,9 +146,9 @@ DEFAULT_PARAMETERS = [
|
|||
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,
|
||||
|
|
Loading…
Reference in New Issue