diff --git a/llvm/unittests/Object/CMakeLists.txt b/llvm/unittests/Object/CMakeLists.txt --- a/llvm/unittests/Object/CMakeLists.txt +++ b/llvm/unittests/Object/CMakeLists.txt @@ -21,3 +21,8 @@ ) target_link_libraries(ObjectTests PRIVATE LLVMTestingSupport) + +if (MSVC) + # Disable warning C4309: '=': truncation of constant value + set_source_files_properties(GOFFObjectFileTest.cpp PROPERTIES COMPILE_FLAGS -wd4309) +endif()