mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
runtime: blanket application of namespacing and inclusion of new
Apply a blanket pass of including `new` for the placement new allocation and namespacing the call to the global placement new allocator. This should repair the Android ARMv7 builds.
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
#include "swift/ABI/Metadata.h"
|
||||
#include "swift/Runtime/HeapObject.h"
|
||||
|
||||
#include <new>
|
||||
|
||||
using namespace swift;
|
||||
using namespace llvm;
|
||||
|
||||
@@ -59,7 +61,7 @@ AutoDiffLinearMapContext *swift::swift_autoDiffCreateLinearMapContext(
|
||||
sizeof(AutoDiffLinearMapContext), alignof(AutoDiffLinearMapContext))
|
||||
+ topLevelLinearMapStructSize;
|
||||
auto *buffer = (AutoDiffLinearMapContext *)malloc(allocationSize);
|
||||
return new (buffer) AutoDiffLinearMapContext;
|
||||
return ::new (buffer) AutoDiffLinearMapContext;
|
||||
}
|
||||
|
||||
void *swift::swift_autoDiffProjectTopLevelSubcontext(
|
||||
|
||||
Reference in New Issue
Block a user