fix(builder.rs): Rename r to rvalue in set_rval_location

This commit is contained in:
tempdragon 2024-02-29 03:18:51 +08:00
parent fba0dae5fe
commit 8c975d9861

View File

@ -398,12 +398,12 @@ impl<'gcc, 'tcx> BackendTypes for Builder<'_, 'gcc, 'tcx> {
type DIVariable = <CodegenCx<'gcc, 'tcx> as BackendTypes>::DIVariable;
}
pub fn set_rval_location<'a, 'gcc, 'tcx>(bx: &mut Builder<'a,'gcc,'tcx>, r:RValue<'gcc>) -> RValue<'gcc> {
pub fn set_rval_location<'a, 'gcc, 'tcx>(bx: &mut Builder<'a,'gcc,'tcx>, rvalue:RValue<'gcc>) -> RValue<'gcc> {
if bx.loc.is_some(){
#[cfg(feature = "master")]
r.set_location(bx.loc.unwrap());
rvalue.set_location(bx.loc.unwrap());
}
r
rvalue
}