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

Add support for NonNull function attribute #326

Merged
merged 2 commits into from Oct 17, 2023

Conversation

GuillaumeGomez
Copy link
Member

src/abi.rs Show resolved Hide resolved
src/abi.rs Show resolved Hide resolved
src/abi.rs Outdated Show resolved Hide resolved
src/declare.rs Outdated Show resolved Hide resolved
src/abi.rs Outdated
}

fn ptr_to_gcc_type(&self, cx: &CodegenCx<'gcc, 'tcx>) -> Type<'gcc> {
let (return_type, params, variadic, on_stack_param_indices) = self.gcc_type(cx);
// FIXME: Should we do something with `fn_attrs`?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have the feeling that we should, since I handled the on stack parameters below.
But I'm not sure how to double-check this.

src/abi.rs Show resolved Hide resolved
src/abi.rs Outdated Show resolved Hide resolved
src/type_of.rs Outdated Show resolved Hide resolved
@antoyo antoyo merged commit c80fb4a into rust-lang:master Oct 17, 2023
21 of 32 checks passed
@GuillaumeGomez GuillaumeGomez deleted the non-null branch October 18, 2023 08:50
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.

None yet

2 participants