Skip to content

Commit

Permalink
[KGEN] Rename ArgConvention::ByRef to ArgConvention::InOut, NFC. (#41…
Browse files Browse the repository at this point in the history
…013)

This aligns the terminology with the modern keyword, we haven't
called it 'byref' for a long time.  We may eventually rename
this again but for now align these.

MODULAR_ORIG_COMMIT_REV_ID: eccdfc1e3620f1483b2435391610a530d6318037
  • Loading branch information
lattner authored and modularbot committed Jun 7, 2024
1 parent ee3f97d commit d12eb39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/src/builtin/builtin_list.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,9 @@ struct VariadicListMem[

# Provide support for variadics of *inout* arguments. The reference will
# automatically be inferred to be mutable, and the !kgen.variadic will have
# convention=byref.
# convention=inout.
alias _inout_variadic_type = __mlir_type[
`!kgen.variadic<`, Self._mlir_ref_type, `, byref>`
`!kgen.variadic<`, Self._mlir_ref_type, `, inout>`
]

@always_inline
Expand Down

0 comments on commit d12eb39

Please sign in to comment.