Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cranelift/codegen/meta/src/cdsl/instructions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,15 @@ impl InstructionBuilder {
}
}

pub fn operands_in(mut self, operands: Vec<Operand>) -> Self {
pub fn operands_in(mut self, operands: &[Operand]) -> Self {
assert!(self.operands_in.is_none());
self.operands_in = Some(operands);
self.operands_in = Some(operands.to_vec());
self
}

pub fn operands_out(mut self, operands: Vec<Operand>) -> Self {
pub fn operands_out(mut self, operands: &[Operand]) -> Self {
assert!(self.operands_out.is_none());
self.operands_out = Some(operands);
self.operands_out = Some(operands.to_vec());
self
}

Expand Down
Loading