Skip to content

Commit

Permalink
fix now-incorrect parenthetical about byval attr
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdesjardins committed Mar 7, 2024
1 parent 96a7267 commit c56ffaa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions compiler/rustc_target/src/abi/call/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ pub enum PassMode {
/// argument. (This is the only mode that supports unsized arguments.)
/// `on_stack` defines that the value should be passed at a fixed stack offset in accordance to
/// the ABI rather than passed using a pointer. This corresponds to the `byval` LLVM argument
/// attribute (using the Rust type of this argument). `on_stack` cannot be true for unsized
/// arguments, i.e., when `meta_attrs` is `Some`.
/// attribute (using a byte array type with the same size as the Rust type [which ensures that
/// padding is preserved and that we do not rely on LLVM's struct layout], and with alignment
/// determined in a complex, target-specific manner [see callers of `make_indirect_byval`]).
/// `on_stack` cannot be true for unsized arguments, i.e., when `meta_attrs` is `Some`.
Indirect { attrs: ArgAttributes, meta_attrs: Option<ArgAttributes>, on_stack: bool },
}

Expand Down

0 comments on commit c56ffaa

Please sign in to comment.