Skip to content

Conversation

@DanBlackwell
Copy link

This was causing zero sized setTags to be emitted when compiling Swift class initializers with memtag-stack sanitization; this caused an assert in the backend 'N->getOpcode() != ISD::EntryToken && "EntryToken in CSEMap!"'.

This patch does as the title says and replaces the use of the lifetime size argument with AllocaInst.getAllocationSize.

rdar://164400893

…lifetime size

This was causing zero sized setTags to be emitted when compiling with Swift with memtag-stack sanitization; this caused an assert in the backend 'N->getOpcode() != ISD::EntryToken && "EntryToken in CSEMap!"'.

This patch does as the title says and replaces the use of the lifetime size argument with AllocaInst.getAllocationSize.

rdar://164400893
@DanBlackwell DanBlackwell requested a review from a team as a code owner December 10, 2025 16:07
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