Skip to content

Teach isTriviallyCopyableType to return false when the type is an address-discriminated ptrauth type or a struct containing a field that has such a type #5072

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 8, 2022

Conversation

ahatanaka
Copy link

This fixes a crash in AggExprEmitter::EmitArrayInit that occurs when it tries to initialize an array of a struct with an address-discriminated ptrauth type field from a global.

rdar://85173549
(cherry picked from commit 997b179)

Conflicts:
clang/test/CodeGen/ptrauth-in-c-struct.c

…ress-discriminated ptrauth type or a struct containing a field that has such a type

This fixes a crash in AggExprEmitter::EmitArrayInit that occurs when it tries to initialize an array of a struct with an address-discriminated ptrauth type field from a global.

rdar://85173549
(cherry picked from commit 997b179)

Conflicts:
	clang/test/CodeGen/ptrauth-in-c-struct.c
@ahatanaka
Copy link
Author

@swift-ci please test

1 similar comment
@ahatanaka
Copy link
Author

@swift-ci please test

@ahatanaka ahatanaka merged commit 89ba0db into stable/20220421 Aug 8, 2022
@ahatanaka ahatanaka deleted the isTriviallyCopyableType branch August 8, 2022 23:31
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