Skip to content

librustc_trans: function parameters should be annotated with zeroext/signext #30841

Closed
@antonblanchard

Description

@antonblanchard

type_of -> Type::uint_from_ty/Type::int_from_ty converts to LLVM types which have no sign. This is then passed to the architecture specific code in compute_abi_info().

PowerPC needs to know whether to sign or zero extend function call parameters, but it doesn't have enough information in the LLVM types.

Metadata

Metadata

Assignees

Labels

A-codegenArea: Code generationP-mediumMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions