about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm
diff options
context:
space:
mode:
authorrdambrosio <rdambrosio016@gmail.com>2021-11-23 22:30:20 -0500
committerrdambrosio <rdambrosio016@gmail.com>2021-11-23 22:30:20 -0500
commit870b8311c17fb51139d5cc95fc592bcea85ee6ac (patch)
treefd5be0798b16b4abc40f3d7bf31af299ba642713 /compiler/rustc_codegen_llvm
parentde4b242e1e2143f549f25ac5a8f7de9d902ef3b4 (diff)
downloadrust-870b8311c17fb51139d5cc95fc592bcea85ee6ac.tar.gz
rust-870b8311c17fb51139d5cc95fc592bcea85ee6ac.zip
Feat: make cg_ssa get_param borrow the builder mutable
Diffstat (limited to 'compiler/rustc_codegen_llvm')
-rw-r--r--compiler/rustc_codegen_llvm/src/abi.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/abi.rs b/compiler/rustc_codegen_llvm/src/abi.rs
index bedd3523d89..07adfff0901 100644
--- a/compiler/rustc_codegen_llvm/src/abi.rs
+++ b/compiler/rustc_codegen_llvm/src/abi.rs
@@ -607,7 +607,7 @@ impl AbiBuilderMethods<'tcx> for Builder<'a, 'll, 'tcx> {
         fn_abi.apply_attrs_callsite(self, callsite)
     }
 
-    fn get_param(&self, index: usize) -> Self::Value {
+    fn get_param(&mut self, index: usize) -> Self::Value {
         llvm::get_param(self.llfn(), index as c_uint)
     }
 }