mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
78fa2db647
The first problem was a use-after-free in the tests (detected by asan bots). The temporary array created for the "create" call is guaranteed to live only until the end of the statement. The fix there is to store the test data in a local variable to ensure it has the right lifetime The second issue is broken BUILD_SHARED_LIBS build, which I fix by adding the appropriate BinaryFormat dependency to the Object unit tests. llvm-svn: 356655
13 lines
214 B
CMake
13 lines
214 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
BinaryFormat
|
|
Object
|
|
)
|
|
|
|
add_llvm_unittest(ObjectTests
|
|
MinidumpTest.cpp
|
|
SymbolSizeTest.cpp
|
|
SymbolicFileTest.cpp
|
|
)
|
|
|
|
target_link_libraries(ObjectTests PRIVATE LLVMTestingSupport)
|