mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[CoroutineAccessors] Directly reference allocators
Replace the call to a runtime function that looks up the allocator with a direct reference to a just-emittedd sought-after global allocator.
This commit is contained in:
@@ -832,8 +832,8 @@ IRGenModule::IRGenModule(IRGenerator &irgen,
|
||||
CoroAllocatorTy = createStructType(*this, "swift.coro_allocator",
|
||||
{
|
||||
Int32Ty, // CoroAllocator.Flags
|
||||
CoroAllocateFnTy,
|
||||
CoroDeallocateFnTy,
|
||||
CoroAllocateFnTy->getPointerTo(),
|
||||
CoroDeallocateFnTy->getPointerTo(),
|
||||
});
|
||||
CoroAllocatorPtrTy = CoroAllocatorTy->getPointerTo();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user