[PATCH] D55699: Updated DynamicLibrary test to support static linking against MSVC RT.

Ivan Karachun via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 14 02:59:50 PST 2018


ivankara created this revision.
ivankara added reviewers: marsupial, Bigcheese.
Herald added a subscriber: llvm-commits.

In this test we allocate memory in executable, reallocate memory in library and trying to release memory in executable. 
Static linking standard library against both executable and library file leads to allocators conflict. Each target has its own allocator which doesn't know about existence of the other. 
This patch avoids allocating memory in library.


Repository:
  rL LLVM

https://reviews.llvm.org/D55699

Files:
  unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp
  unittests/Support/DynamicLibrary/PipSqueak.cpp
  unittests/Support/DynamicLibrary/PipSqueak.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55699.178211.patch
Type: text/x-patch
Size: 4700 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181214/3f3d8c6a/attachment.bin>


More information about the llvm-commits mailing list