Skip to content

Commit

Permalink
Update toolchain/sem_ir/typed_insts.h
Browse files Browse the repository at this point in the history
Co-authored-by: Jon Ross-Perkins <[email protected]>
  • Loading branch information
danakj and jonmeow authored Jan 6, 2025
1 parent 658ec99 commit 6775b20
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions toolchain/sem_ir/typed_insts.h
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,9 @@ struct BoolLiteral {
BoolValue value;
};

// A bound method, that combines a function with the value to use for its `self`
// parameter, such as `object.MethodName`. It is a callable thing like the
// `FunctionType` it refers to through the type of the `function_id`
// instruction, rather than a call to the method itself like `Call`.
// For member access such as `object.MethodName`, combines a member function
// with the value to use for `self`. This is a callable structure; `Call` will
// handle the argument assignment.
struct BoundMethod {
static constexpr auto Kind = InstKind::BoundMethod.Define<Parse::NodeId>(
{.ir_name = "bound_method",
Expand Down

0 comments on commit 6775b20

Please sign in to comment.