Skip to content
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

Fix compiler assert involving a bound-safe interface with a typedef'ed type. #1227

Merged
merged 2 commits into from
Dec 3, 2023

Conversation

dtarditi
Copy link
Member

@dtarditi dtarditi commented Dec 3, 2023

This fixes issue #1200. The conversion of a pointer-typed variable with a bounds-safe interface to an unchecked pointer type was failing when the bound-safe interface type used a typedef'ed type. There was an assertion that a type had not been canonicalized. The fix is to use the canonicalized version of the bounds-safe interface type in the conversion code. This change includes a test case for the failure.

…d type.

The conversion of a pointer-typed variable with a bounds-safe interface to
an unchecked pointer type was failing when the bound-safe interface type used
a typedef'ed type. There was an assertion that a type had not been
not been canonicalized. The fix is to use the canonicalized version of the
bounds-safe interface type in the conversion code.
@dtarditi dtarditi merged commit 92ef8fe into main Dec 3, 2023
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