Remove an unnecessary unwrap in rustc_codegen_gcc
This commit is contained in:
parent
3c5c55864f
commit
d3653e9f59
1 changed files with 2 additions and 2 deletions
|
|
@ -503,9 +503,9 @@ fn set_rvalue_location<'a, 'gcc, 'tcx>(
|
|||
bx: &mut Builder<'a, 'gcc, 'tcx>,
|
||||
rvalue: RValue<'gcc>,
|
||||
) -> RValue<'gcc> {
|
||||
if bx.location.is_some() {
|
||||
if let Some(location) = bx.location {
|
||||
#[cfg(feature = "master")]
|
||||
rvalue.set_location(bx.location.unwrap());
|
||||
rvalue.set_location(location);
|
||||
}
|
||||
rvalue
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue