diff --git a/.CMake/compiler_opts.cmake b/.CMake/compiler_opts.cmake index 083529b32c..2b0aa31f85 100644 --- a/.CMake/compiler_opts.cmake +++ b/.CMake/compiler_opts.cmake @@ -118,7 +118,7 @@ if(CMAKE_C_COMPILER_ID MATCHES "Clang") add_compile_options(-fsanitize=address) set(SANITIZER_LD_FLAGS "-fsanitize=address") elseif(USE_SANITIZER STREQUAL "Memory") - add_compile_options(-fsanitize=address) + add_compile_options(-fsanitize=memory) set(SANITIZER_LD_FLAGS "-fsanitize=memory") elseif(USE_SANITIZER STREQUAL "MemoryWithOrigins") add_compile_options(-fsanitize=memory)