[libc-commits] [libc] [libc] Replace -nostdlib++ flag when building with gcc and add placement new operator to HermeticTestUtils.cpp. (PR #78906)

via libc-commits libc-commits at lists.llvm.org
Mon Jan 22 10:31:10 PST 2024


================
@@ -104,6 +104,8 @@ void *__dso_handle = nullptr;
 
 } // extern "C"
 
+void *operator new(unsigned long size, void *ptr) { return ptr; }
----------------
michaelrj-google wrote:

is this okay or should it call realloc?

https://github.com/llvm/llvm-project/pull/78906


More information about the libc-commits mailing list