Skip to content

Conversation

@fhahn
Copy link

@fhahn fhahn commented Oct 20, 2023

No description provided.

fhahn added 3 commits October 20, 2023 11:23
…ult (llvm#69474)

At the moment, all alloc-like functions are assumed to return non-null
pointers, if their return value is only used in a compare. This is based
on being allowed to substitute the allocation function with one that
doesn't fail to allocate the required memory.

aligned_alloc however must also return null if the required alignment
cannot be satisfied, so I don't think the same reasoning as above can be
applied to it.

This patch adds a bail-out for aligned_alloc calls to
isAllocSiteRemovable.
@fhahn
Copy link
Author

fhahn commented Oct 20, 2023

@swift-ci please test

@fhahn fhahn merged commit 357e5e6 into swiftlang:stable/20230725 Oct 20, 2023
@fhahn fhahn deleted the aligned-alloc-fix-2 branch October 20, 2023 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant