Skip to content

Commit 0d61135

Browse files
committed
Feat: make cg_ssa get_param borrow the builder mutable
1 parent a912fed commit 0d61135

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/abi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ impl<'a, 'gcc, 'tcx> AbiBuilderMethods<'tcx> for Builder<'a, 'gcc, 'tcx> {
1414
// TODO(antoyo)
1515
}
1616

17-
fn get_param(&self, index: usize) -> Self::Value {
17+
fn get_param(&mut self, index: usize) -> Self::Value {
1818
self.cx.current_func.borrow().expect("current func")
1919
.get_param(index as i32)
2020
.to_rvalue()

0 commit comments

Comments
 (0)